elect
03/26/2017, 8:29 PMforEachIndexed
offering immediately i, it
benleggiero
03/26/2017, 8:58 PMmg6maciej
03/26/2017, 9:23 PMlist.forEachIndexed { print("index: $i, value: $it") }
as opposed to
list.forEachIndexed { i, it -> print("index: $i, value: $it") }
mg6maciej
03/26/2017, 9:24 PMlist.forEachIndexed { i, it, -> print("index: $i, value: $it") }
benleggiero
03/27/2017, 12:15 AM$0.0
and $0.1
. I'd like to see it1
or it2
elect
03/27/2017, 7:28 AMmg6maciej
03/27/2017, 8:00 AMelect
03/27/2017, 8:36 AMbenleggiero
03/27/2017, 9:48 AMit
in forEachIndexed
without explicit naming