Module functions

Source
Expand description

Generic, free helper functions, combinators and re-exports of typeclass functions that dispatch to instance methods.

Re-exports§

pub use super::typeclasses::apply::apply;
pub use super::typeclasses::apply_first::apply_first;
pub use super::typeclasses::apply_second::apply_second;
pub use super::typeclasses::bind::bind;
pub use super::typeclasses::functor::map;
pub use super::typeclasses::pure::pure;

Functions§

compose
Takes a function f, returns a new function that takes a function g, then returns the final composed function f . g.
constant
Returns its first argument.
flip
Returns a curried version of the input binary function, but with its arguments flipped.
identity
Returns its input.