a -> Event t a -> Behavior t a +reactive-banana

stepper :: a -> Event t a -> Behavior t a
reactive-banana Reactive.Banana.Experimental.Calm
Construct a time-varying function from an initial value and a stream of new values.
stepper :: a -> Event t a -> Behavior t a
reactive-banana Reactive.Banana.Combinators
Construct a time-varying function from an initial value and a stream of new values. Think of it as > stepper x0 ex = \time -> last (x0 (:) [x | (timex,x) <- ex, timex < time]) Note that the smaller-than-sign in the comparision timex < time means that the value of the behavior changes "slightly after" the event occurrences. This allows for recursive definitions. Also note that in the case of simultaneous occurrences, only the last one is kept.