Loading search index…
No recent searches
No results for "Query here"
Composes a function after applying arguments. Applies the last function to the result of the first function applied.
export const Quirky = (x: Fn) => (y: Fn) => (z: Fn) => z(x(y)); export const Q3 = Quirky;
const getValue = (fn: Fn) => fn(); const makeGetter = () => 5; const double = (x: number) => x * 2; const postComposed = Quirky(getValue)(makeGetter)(double); postComposed; // 10