Base.FnSourceVarious combinators for functions.
A "pipe" operator. x |> f is equivalent to f x.
See ppx_pipebang for further details.
Produces a function that just returns its first argument.
Ignores its argument and returns ().
Negates a boolean function.
forever f runs f () until it throws an exception and returns the exception. This function is useful for read_line loops, etc.
apply_n_times ~n f x is the n-fold application of f to x.
The identity function.
See also: Sys.opaque_identity.
compose f g x is f (g x).
Reverses the order of arguments for a binary function.