Loading search index…
No recent searches
No results for "Query here"
Distributes an argument to two positions (fork pattern). Useful for applying the same value to multiple function calls.
export const Hummingbird = (x: Fn) => (y: Fn) => (z: Fn) => x(y)(z)(y); export const H = Hummingbird; export const Couple = H;
const makeAdder = (x: number) => (y: number) => (z: number) => x + y + z; const fork = Hummingbird(makeAdder)(5)(3); // 13