Closed jgranduel closed 6 years ago
S.lte
and friends take their arguments in the order most natural for partial application:
lte :: Ord a => a -> (a -> Boolean)
Returns
true
iff the second argument is less than or equal to the first according toZ.lte
. The arguments must be provided one at a time.
Sanctuary:
> S.filter (S.gte (0)) ([-27, 8, 25, -54, 25, 41])
[8, 25, 25, 41]
Ramda:
> R.filter (R.gte (R.__, 0)) ([-27, 8, 25, -54, 25, 41])
[8, 25, 25, 41]
I hope this makes the difference clear. :)
It definitely looks like the wiki page is out of date @jgranduel, thanks for bringing attention to that. Would you be interested in updating it?
Perfect!
@Bradcomp sorry I hadn't seen your comment before closing the issue. Unfortunately, I'm by far not good enough to dare comment on a very useful wiki page :(
Hi,
back to sanctuary after a long while, I've been warming up... Is there an incompatibility here with lte ?
or
In Ramda to Sanctuary, R.lte(x, y) and S.lte(x, y) should be equivalent.
Thanks