Hi all. I feel like in Kotlin there should be an i...
# getting-started
l
Hi all. I feel like in Kotlin there should be an idiomatic way to say "for each item in this collection, execute this method." I'm currently writing this as:
collection.forEach { item -> item.call() }
but I feel like there should be something similar to
collection.forEach{Item::call}
. My Googling has not helped me, anyone know how this works?