std.function
Conveniences for working with functions.
Values
A Functor represents an action on a parameterized type which does not
change the structure with the mapped type.
The following laws should hold:
map id == idmap (f << g) == map f << map g
#[implicit]
let applicative : forall a . Applicative ((->) a)
A Functor with application.
The following laws should hold:
wrap id <*> v = vwrap (<<) <*> u <*> v <*> w = u <*> (v <*> w)wrap f <*> wrap x = wrap (f x)u <*> wrap y = wrap (\g -> g x) <*> u
A generalised interface for imperatively sequencing actions
The identity function, where id x == x
const x creates a function that always returns x
flip f creates a new function that takes its two arguments in reverse order
Backward function application, where f <| x == f x
Forward function application, where x |> f == f x
Right-to-left function composition
Left-to-right function composition