Join Slack
Powered by
is there a stdlib function that will call a lambda...
# getting-started
z
zpearce
08/02/2018, 7:42 PM
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
diesieben07
08/02/2018, 7:42 PM
onEach
👆 1
z
zpearce
08/02/2018, 7:46 PM
ah, thx! I didn't make it far enough in the docs before I gave up, apparently 😉
15
Views
Open in Slack
Previous
Next