selfrefactor / rambdax

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

rejectIndexed is missing #67

Closed whitelizard closed 3 years ago

whitelizard commented 3 years ago

From the changelog:

"6.0.0 Breaking change - R.map/R.filter/R.reject/R.forEach/R.partition doesn't pass index as second argument to the predicate, when looping over arrays. The old behaviour of map, filter and forEach can be found in Rambdax methods R.mapIndexed, R.filterIndexed and R.forEachIndexed(introduced in version 6.1.0)."

But rejectIndexed was not added together with the others (and not partitionIndexed either?).

Also, the rejectIndexed REPL is broken.

selfrefactor commented 3 years ago

You are right that when R.reject/R.partition stopped passing index as second argumen, no fooIndexed alternative was provided. I will try to add them with the next release. I will keep the issue open until then and thank you for pointing that out.

selfrefactor commented 3 years ago

R.partitionIndexed and R.rejectIndexed had been added with 7.3.0.