ramda icon indicating copy to clipboard operation
ramda copied to clipboard

doc should note if function return not curry function

Open HoKangInfo opened this issue 2 years ago • 2 comments

ex:

const list = unapply(I)

chain(list, I)(1)
// TypeError: fn(...) is not a function

converge(list, [I,I])(1)
// return [1,1]

alt

const list = curryN(2, unapply(I))

chain(list, I)(1)
// return [1,1]

like compose Note: The result of compose is not automatically curried.

HoKangInfo avatar Apr 19 '22 08:04 HoKangInfo

Agreed. This would be a very good idea. Do you have an interest in creating a PR for this?

CrossEye avatar Apr 21 '22 00:04 CrossEye

Anytime, https://github.com/ramda/ramda/pull/3279

HoKangInfo avatar May 05 '22 02:05 HoKangInfo