By default, Swift provides all entity functions as curried static functions so calls to entity functions can be represented in a two ways:
//regular use
let something: Something = ...
something.map { ... }
//curried function use
Something.map(something)({ ... })
The existing implementation of flip works only on uncurried functions, while there are a lot of use cases for a curried version of flip. Does it make sense to introduce a curried version of flip?
By default, Swift provides all entity functions as curried static functions so calls to entity functions can be represented in a two ways:
The existing implementation of
flip
works only on uncurried functions, while there are a lot of use cases for a curried version of flip. Does it make sense to introduce a curried version of flip?