These are chat archives for ramda/ramda
idxon things like
mapis that these functions are meant to be more generic than just array-based versions. But an
idxparameter doesn't necessarily have a meaning for a stream or a lazy list, and it definitely doesn't have a meaning for an arbitrary Functor.
R.gt(R.__, 10)as a predicate for some function.
R.filter(R.gt(10), [5, 10, 15, 20]) // currently [5, 10], though expect it to be [15, 20]
subtract(12, 6); //=> 0.5or
gt(5, 2); //=> falseare to most users even more surprising than the current behavior on currying. It's certainly not ideal. For some time we had second versions of these non-commutative operators,
divideBy, but those always felt cheesy, and weren't easy to extend to
Dual purpose method to check or force function arity.
R.lengthand as the defunct
arityof... was just a hangover from when I started writing it ;)
set(obj, key, val)as well as