Loading search index…
No recent searches
No results for "Query here"
Composes functions with complex argument distribution. Applies five arguments with nested composition.
export const Eagle = (x: Fn) => (y: Fn) => (z: Fn) => (w: Fn) => (v: Fn) => x(y)(z(w)(v)); export const E = Eagle;
const add = (x: number) => (y: number) => x + y; const multiply = (x: number) => (y: number) => x * y; const complex = Eagle(add)(5)(multiply); complex(3)(4); // 17