You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const positiveNumbers = numbers.filter(isPositiveNumber)
const negativeNumbers = numbers.filter(complement(isPositiveNumbers))
/// some tramsforms of this values
...
so it's not very fast and declarative. Also it becomes too repetetive, when there are more then 2 groups. So I need something like this:
Sometimes (not often) i need logic like this:
so it's not very fast and declarative. Also it becomes too repetetive, when there are more then 2 groups. So I need something like this:
So I mean that i can pick my sublist by index/
Also there is other usecase with more than 2 groups:
So realization can be something like this:
The text was updated successfully, but these errors were encountered: