You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Activity
335g commentedon Sep 28, 2016
I think it's a good idea 👍
werediver commentedon Oct 5, 2016
I think both the curried and the uncurried
flipare of great value and should be implemented (I would write both from the start).