Pike v8.1 release 6

Method Function.composite()


Method composite

function(:void) composite(function(:void) ... f)

Description

Creates a composite function of the provided functions. The composition function of f() and g(), q(x)=f(g(x)), is created by function q = Function.composite(f, g);.

Example
map(input/",",
     Function.composite(String.trim, upper_case));