Quark v2.3.0 Quark.M View Source

The self-applyication combinator

Link to this section Summary

Functions

m()

Apply a function to itself. Also aliased as self_apply

See Quark.M.m/0

See Quark.M.m/1

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
Link to this function m(fun) View Source
m((... -> any)) :: (... -> any)

See Quark.M.m/0.

See Quark.M.m/1.