sanctuary-js / sanctuary

:see_no_evil: Refuge from unsafe JavaScript
https://sanctuary.js.org
MIT License
3.03k stars 94 forks source link

How to use partial application here? #585

Closed uldaman closed 5 years ago

uldaman commented 5 years ago

Because of some functions in other library, I can't apply its parameters in order. So, do we have a feature that looks like R.__ in Ramda?

davidchambers commented 5 years ago

We removed the placeholder functionality when we switched from Ramda-style currying to simple currying. One can, though, use S.flip:

> S.concat ('foo') ('bar')
'foobar'

> S.flip (S.concat) ('bar') ('foo')
'foobar'
uldaman commented 5 years ago

Ok, got it, thank you.