query
On this page

pipe

lib.fp.pipe

Docs pulled from | This Revision | 4 months ago


Nixpkgs manual

Process a value with a series of functions. Functions are applied in the order they are provided.

Type

pipe :: [(Any -> Any)] -> Any -> Any

Noogle detected

Implementation

The following is the current implementation of this function.

pipe = fs: (x: builtins.foldl' (value: f: f value) x fs);