Base.Fn
Various combinators for functions.
A "pipe" operator. x |> f
is equivalent to f x
.
See ppx_pipebang for further details.
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
.