Apcl (apcl v0.1.0)
A Practical Combinator Library.
Summary
Functions
Returns a function which applies f
to xs
.
Performs function composition.
Returns a function which returns x
no matter what it is passed.
Returns a function which permutes its arguments and applies f
to them.
Returns its argument.
Given two arguments, returns the left one.
Returns a function that applies g
and h
to its arguments, taking the
resulting values as the arguments to f
.
Given two arguments, returns the right one.
Returns a function that applies g
to each of its arguments, taking the
resulting values as the arguments to f
.
Functions
apply(f)
Returns a function which applies f
to xs
.
compose(f, g)
Performs function composition.
constant(x)
Returns a function which returns x
no matter what it is passed.
flip(f)
Returns a function which permutes its arguments and applies f
to them.
identity(x)
Returns its argument.
left(x, y)
Given two arguments, returns the left one.
recombine(f, g, h)
Returns a function that applies g
and h
to its arguments, taking the
resulting values as the arguments to f
.
right(x, y)
Given two arguments, returns the right one.
under(f, g)
Returns a function that applies g
to each of its arguments, taking the
resulting values as the arguments to f
.