Esa
08/20/2020, 11:25 AMIterable<T>
that has been very useful to me personally, and I wish to make a contribution to the stdlib with those. 🙂 I read through this link and it suggests to let you know of my plans. So here's what the functions are basically:
list.validatedFold
- this is a function that iterates through the elements of an ordered list, and verifies that elements n
and n+1
pass some validation function. returns true if all elements pass, or false on the first element that does not pass (early return).
list.flatMapIndexedNotNull
- essentially what the name says, it was relevant for me in one case and I didn't find it in the stdlib.
Do you think these are appropriate contributions?dmitriy.novozhilov
08/20/2020, 11:34 AMEsa
08/20/2020, 11:36 AM