/function/pipe
stdPipes an input through given functions.
Type signature
<T>(...fs: ((x: T) => T)[]) => (x: T) => T
Examples
pipe(
(x) => x * x,
(x) => x + 1,
)(3);
// ⇒ 10
Try in REPL
Questions
- How to pipe an argument through a function?