Loading search index…
No recent searches
No results for "Query here"
Reverse application (piping). Applies a value to a function, useful for chaining operations. Useful for: value |> fn1 |> fn2 pattern
value |> fn1 |> fn2
export const Thrush = (x: Fn) => (y: Fn) => y(x); export const T = Thrush; export const Pipe = T;
const double = (x: number) => x * 2; const result = Thrush(5)(double); result; // 10