lndsld

Home > @lndsld/fp > flow

flow() function

Signature:

declare function flow<A extends Array<unknown>, B, C, D, E, F>(ab: (...a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (d: E) => F): (...a: A) => F;

Parameters

Parameter Type Description
ab (…a: A) => B  
bc (b: B) => C  
cd (c: C) => D  
de (d: D) => E  
ef (d: E) => F  

Returns:

(…a: A) => F