xii
08/24/2021, 7:32 PMPaul Griffith
08/24/2021, 9:03 PMmapIndexed
and check if the first parameter is the collection's size...if the collection is actually sizedxii
08/25/2021, 7:15 AMCLOVIS
08/25/2021, 8:11 AMyourList
.mapIndexed { (i, it) ->
if (i == yourList.lastIndex) foo()
else bar()
}