Loading search index…
No recent searches
No results for "Query here"
Flips the order of the last two arguments. Useful for reordering function parameters to match calling conventions.
export const Cardinal = (x: Fn) => (y: Fn) => (z: Fn) => x(z)(y); export const C = Cardinal; export const Flip = C;
const divide = (x: number) => (y: number) => x / y; const divideBy = Cardinal(divide); divideBy(2)(10); // 5