on master help sign in
Attempt to address #463
bb056acEvan Czaplicki
libraries/Signal.elm+6−3
@@ -132,9 +132,12 @@ signal is always true. -}
132dropWhen : Signal Bool -> a -> Signal a -> Signal a
132dropWhen : Signal Bool -> a -> Signal a -> Signal a
133dropWhen = Native.Signal.dropWhen
133dropWhen = Native.Signal.dropWhen
134
134
135−{-| Drop sequential repeated values. For example, if a signal produces the
135+{-| Drop updates that repeat the current value of the signal.
136−sequence `[1,1,2,2,1]`, it becomes `[1,2,1]` by dropping the values that are the
136+
137−same as the previous value. -}
137+Imagine a signal `numbers` has initial value
138+0 and then updates with values 0, 0, 1, 1, and 2. `dropRepeats numbers`
139+is a signal that has initial value 0 and updates as follows: ignore 0,
140+ignore 0, update to 1, ignore 1, update to 2. -}
138dropRepeats : Signal a -> Signal a
141dropRepeats : Signal a -> Signal a
139dropRepeats = Native.Signal.dropRepeats
142dropRepeats = Native.Signal.dropRepeats
140
143