Module s2_funs

Functions.

Description

Functions.

Function Index

fix/2fix(F, X) is the fixpoint of F.
fix/3
flip/1flip(F) is F with reversed argument order.
o/1(o([F, G]))(X) is F(G(X)).
o/2
o/3
reduce/1reduce(F) is the value of F.
unwind_with/3See s2_fs.erl for use cases.

Function Details

fix/2

fix(F::function(), X::term()) -> term() | no_return()

fix(F, X) is the fixpoint of F.

fix/3

fix(F, X, Eq) -> any()

flip/1

flip(F::fun((A, B) -> C)) -> fun((B, A) -> C)

flip(F) is F with reversed argument order.

o/1

o(Fs::[function()]) -> function()

(o([F, G]))(X) is F(G(X)).

o/2

o(F, G) -> any()

o/3

o(F, G, H) -> any()

reduce/1

reduce(X::fun(() -> A) | A) -> A

reduce(F) is the value of F.

unwind_with/3

unwind_with(F::fun((A, fun((B) -> C)) -> C), Xs::[A], G::fun(([B]) -> C)) -> C

See s2_fs.erl for use cases.


Generated by EDoc, Mar 14 2025, 16:51:43.