Hi there, I have a couple of extension functions f...
# kontributors
e
Hi there, I have a couple of extension functions for
Iterable<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?
d
#stdlib
e
Thanks, I'll ask there.