Quark.M (Quark v2.3.2) View Source

The self-applyication combinator

Link to this section Summary

Functions

m()

Apply a function to itself. Also aliased as self_apply.

Link to this section Functions

Apply a function to itself. Also aliased as self_apply.

Examples

iex> add_one = fn x -> x + 1 end
...> add_two = m(add_one)
...> add_two.(8)
10

Specs

m((... -> any())) :: (... -> any())

See Quark.M.m/0.

See Quark.M.m/1.