These are chat archives for ramda/ramda
forEachas little as possible. The only real uses I know for it not better done with something else is for side-effects. But it seems necessary for DOM processing sometimes. I don't know that I've ever flipped it.
reducedoesn't prevent you from returning a mutated accumulator. We don't advertise this fact, but it's quite true.
R.compose(R.filter, R.propEq('id'));is there a way to use it without two separate calls? i.e. not
R.useWith(R.filter, R.propEq('id'), R.identity)does the trick…
pipeis that all the arguments are passed ro the first function, then only the results of the previous one to each subsequent function. That's why we have
R.identityis technically unnecessary, although it might always be best practice to include it.
but i want to pass index from which i need to slice for example i may need to slice from index 3 to end
what i actually want today is R.tail but in future i may want to slice from some index