control v0.1.0 Control.Helpers

A set of helper functions to ease the process of working with the Control.* protocols.

Link to this section Summary

Functions

Compose operator

Bind operator

Link to this section Functions

Link to this function left <|> right
Function.t() <|> Function.t() :: Function.t()

Compose operator.

The compose operator (. in Haskell) removes the need for using apply/2 or .() to call an anonymous function, so

f.(g.(x)) or f |> apply([g |> apply([x])])

becomes

(

Bind operator.

The bind operator (>>= in Haskell) removes the need for piping to a call to Control.Monad.bind/2, so

functor |> Control.Monad.bind(fun)

becomes

functor ~>> fun