flip
Swap the only two arguments of a function
63 bytes
Usage
Return a new function that swaps the only two arguments of the original function. This is most useful for reversing the order of a “comparator” (i.e. a function used for sorting).
Note that functions with more than two arguments are not supported.