Skip to main content

Module functional

Module functional 

Source
Expand description

Pure function combinators for the Set category (INV-599): identity, compose, pipe.

compose(g, f)(x) == g(f(x)) (right to left) and pipe(f, g)(x) == g(f(x)) (left to right). Both are associative with identity as unit.

Functionsยง

compose
Right-to-left composition: compose(g, f)(x) == g(f(x)).
identity
id_A(x) = x.
pipe
Left-to-right composition: pipe(f, g)(x) == g(f(x)).