3 ms·
Here is an example: http://elm-lang.org/edit/examples/Reactive/Position.elm http://elm-lang.org/edit/examples/Reactive/Position.elm In Elm behaviors and events
by jules 12y ago
Here is an example: http://elm-lang.org/edit/examples/Reactive/Position.elm http://elm-lang.org/edit/examples/Reactive/Position.elm
In Elm behaviors and events are the same thing. Usually operations like filter and fold are only on events, and applicative functor and monadic operations are only on behaviors, but in Elm one type support filter and fold and the applicative functor operations, and monadic bind is not supported at all. I don't think that's good design, but it does mean that Elm has the functionality of both events and behaviors.