@@ -3,7 +3,7 @@
33-- working with time (e.g. setting FPS) and combining signals and time (e.g.
44-- delaying updates, getting timestamps) can be found in the
55-- [`Time`](/docs/Signal/Time.elm) library.
6−--
6+--
77-- Note: There are lift functions up to `lift8`.
88module Signal where
99
@@ -29,7 +29,7 @@ lift8 : (a -> b -> c -> d -> e -> f -> g -> h -> i) -> Signal a -> Signal b -> S
2929
3030-- Create a past-dependent signal. Each value given on the input signal will
3131-- be accumulated, producing a new output value.
32−--
32+--
3333-- For instance, `(foldp (\\t acc -> acc + 1) 0 (Time.every second))` increments every second.
3434foldp : (a -> b -> b) -> b -> Signal a -> Signal b
3535
@@ -41,6 +41,7 @@ merge : Signal a -> Signal a -> Signal a
4141-- signals update simultaneously.
4242merges : [Signal a] -> Signal a
4343
44+-- Combine many signals into one, with an array of results.
4445combine : [Signal a] -> Signal [a]
4546combine = L.foldr (S.lift2 (::)) (S.constant [])
4647
@@ -104,9 +105,9 @@ delay : Time -> Signal a -> Signal a
104105
105106-- Signal application. This takes two signals, holding a function and
106107-- a value. It applies the current function to the current value.
107−--
108+--
108109-- So the following expressions are equivalent:
109−--
110+--
110111-- scene <~ Mouse.x ~ Mouse.y
111112-- lift2 scene Mouse.x Mouse.y
112113(~) : Signal (a -> b) -> Signal a -> Signal b