Loading search index…
No recent searches
No results for "Query here"
Rotates three arguments cyclically. Useful for reordering arguments in a circular pattern.
export const Robin = (x: Fn) => (y: Fn) => (z: Fn) => y(z)(x); export const R = Robin; export const Rotate = R;
const apply = (x: number) => (f: Fn) => f(x); const double = (x: number) => x * 2; const rotated = Robin(double)(apply)(5); // 10