Skip to main content

PulsarLib.Functional

The PulsarLib.Functional library is a small set of functions making it easier to work with some functions in some situations.

Global Methods

The following color methods are accessible via the PulsarLib.Functional global table:

string, string PulsarLib.Functional.partial( string, string )

Builds a partial function, with stored arguments.

function PulsarLib.Functional.flip( function )

Returns a function where the first two inputs are flipped.

any PulsarLib.Functional.reverse( any )

Reverses a set of input arguments.

function PulsarLib.Functional.compose( any )

Build a function o from f/g so that f(g(x)) == o(x)