Predefined function reference

pipe

A reference entry for pipe

Predefined function · core

pipe (mixed value, function f1[, function f2, function f3, ..., function fN]) ⇒ integer

Pushes a value quickly through a pipeline of functions. This saves writing a lot of code. E.g. pipe(5, doubleNum, addFour, squareNum) will take 5 as the value and apply three defined functions to it.