Std.Function
14 public declarations
- apply
fn(A) -> B -> A -> BA function applied to a value, for the places where a function is a value
- applyTo
A -> fn(A) -> B -> BA value passed to a function, reading left to right.
- compose
fn(B) -> C -> fn(A) -> B -> A -> COne function after another: `compose(f, g, x)` is `f(g(x))`.
- constant
A -> B -> AA function that ignores its argument and answers with a fixed value.
- fixpoint
Int -> fn(T) -> T -> T -> TA function applied to itself's result until it stops changing.
- flip
fn(A, B) -> C -> B -> A -> CA function with its two arguments exchanged.
- identity
T -> TThe value itself. Useful wherever a transformation is required and none is
- on
fn(B, B) -> C -> fn(A) -> B -> A -> A -> CTwo values compared after the same transformation is applied to each.
- partial
fn(A, B) -> C -> A -> B -> CA two-argument function with its first argument fixed.
- pipe
fn(A) -> B -> fn(B) -> C -> A -> COne function after another, reading left to right.
- pipe3
fn(A) -> B -> fn(B) -> C -> fn(C) -> D -> A -> DThree functions in a row, reading left to right.
- times
Int -> fn(T) -> T -> T -> TA function applied a number of times. A count below one is the value itself.
- twice
fn(T) -> T -> T -> TA function applied twice.
- until
Int -> fn(T) -> Bool -> fn(T) -> T -> T -> TA function applied until a condition holds.
