krisajenkins/elm-exts/26.1.1

NOTE: this package is not compatible with Elm 0.19.1

Exts.Function

Extensions so generic they just operate on functions.

(>>>) : (env -> a -> b) -> (env -> b -> c) -> env -> a -> c

Left-to-right composition of functions that rely on an environment.

Example:

quux (bar (foo model x) model) model

Becomes:

(foo >>> bar >>> quux) model x

The operator >>> mirrors Haskell's Control.Arrow, because really this is an arrow specialised to Reader.

(<<<) : (env -> b -> c) -> (env -> a -> b) -> env -> a -> c

Right-to-left composition of functions that rely on an environment.