flip
Summary
Swap the first two arguments of a function.
Description
Take a function fn of arity 2 (or more) and return
a curried version of it where the first two parameters
have been swapped.
Examples
1 2 3 4 5 6 7 8 9 | |
Parameters
| Name | Type | Description |
|---|---|---|
| fn | function |
Return
function