https://kotlinlang.org logo
#getting-started
Title
# getting-started
d

dmitry.petrov

05/27/2016, 8:28 AM
I'd just use something like
forEachIndexed
. Not quite declarative, but doesn't create unnecessary objects.