selfrefactor / rambdax

Extended version of Rambda
https://selfrefactor.github.io/rambdax
MIT License
221 stars 26 forks source link

Update functions with 2nd arg as index #52

Closed 8bu closed 4 years ago

8bu commented 4 years ago

Rambda's adjust, all, allPass, any, anyPass, findIndex , findLastIndex and reject are passing index as second argument to the predicate function.

Update type follow this change. But when I checked the source, some functions don't have index as 2nd arg in predicate function:

Btw some R functions have generic type for predicate, so I didn't update its type.