These are chat archives for ramda/ramda
Yeah, supporting functions of arbitrary arity in
compose proved problematic. Here’s a simple example of something that breaks:
R.pipe(R.add, R.map)(10, [1, 2, 3])
[11, 12, 13], but we’ve actually passed
[1, 2, 3] to
R.composecould be for composing unary functions, and
X) could be for composing functions of arbitrary arity?
Xas in some number. I just mean some letter (a suffix). We have
R.composeP, so I thought we’d think of a one-letter suffix for the new function.
[x, y] => …rather than
R.apply((x, y) => …).