various combinators for functions
A 'pipe' operator. Deprecated.
A pipe operator, equivalent to |!, but this notation is more broadly accepted
produces a function that just returns its first argument
ignore
is the same as Pervasives.ignore
. It is useful to have here so
that code that rebinds ignore
can still refer to Fn.ignore
.
Negates a 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
compose f g x
is f (g x)
reverse the order of arguments for a binary function