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

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.

Link to this function

recombine(f, g, h)

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.