-
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flip the arguments of a curried function #1748
Conversation
Co-authored-by: Jonathan Skeate <jskeate@bericotechnologies.com>
This is one of the few cases where I used a conflicting name in fp-ts-std - I don't think uncurried functions should get the proper name Could we perhaps target a breaking change in 3.0 that rewrites |
I agree, I would:
|
@gcanti Should be sorted now. |
I've been using this
flipC
in combination withReader
'slocal
to hide implementation details, based on https://andywhite.xyz/posts/2021-01-28-rte-react/#service-layers-and-implementation-hiding (e.g. https://github.com/PREreview/prereview.org/blob/35278c267c541586f7ca505b9bd9f5a634ec3e93/src/app.ts#L81).This function dates back to @jskeate's suggestion in https://functionalprogramming.slack.com/archives/CPKPCAGP4/p1655736152988389?thread_ts=1655730853.886439&cid=CPKPCAGP4.
Another option could be to overload
flip
, though I've not tried that.