is there a stdlib function that will call a lambda...
# getting-started
z
is there a stdlib function that will call a lambda for each element in an iterable, and return the iterable at the end? Or am I stuck with
Copy code
mylist.map { doTheThing(it); it }
d
onEach
👆 1
z
ah, thx! I didn't make it far enough in the docs before I gave up, apparently 😉