Only change array entries that match predicate #677
Replies: 2 comments
-
I was thinking of something like fork/tee or something. because if I filter, I will loose the information about at what index is the value that has been altered so I cannot merge with the original array to overwrite the value. |
Beta Was this translation helpful? Give feedback.
-
This case is more about Unfortunately, my plans for Rambda are more about fixing existing issues and keeping up with Ramda. But I like your suggestion if you can find such function (as |
Beta Was this translation helpful? Give feedback.
-
Is there a way where I have a filter function that looks for a certain thing and only edit the filtered entries but keeping also the unchanged entries?
example:
what I am trying to avoid is something like
Beta Was this translation helpful? Give feedback.
All reactions