Mango: function composition

Added function composition to Mango.

If f and g are UnaryFunctions, then Adapt.Compose(UnaryFunction f, UnaryFunction g) creates a new function h, where h(x) is equal to f(g(x)).

If f is a BinaryFunction and g1 and g2 are UnaryFunctions, then Adapt.Compose(BinaryFunction f, UnaryFunction g1, UnaryFunction g2) returns a new BinaryFunction h such that h(x, y) is equal to f(g1(x), g2(y)).


Tagged code, mango, java, ranges, iterators, and fp


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired



Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired