A module defining utility methods for higher-order functional programming.
Tupling for functions of arity 2. This transforms a function of arity 2 into a unary function that takes a pair of arguments.
These functions are slotted for deprecation, but it is on hold pending superior type inference for tupling anonymous functions.
Turns a function
A => Option[B] into a
Important note: this transformation implies the original function
may be called 2 or more times on each logical invocation, because the
only way to supply an implementation of
isDefinedAt is to call the
function and examine the return value.
See also scala.PartialFunction, method