Kavin
08/12/2019, 11:57 AMShawn
08/12/2019, 12:03 PMreturn
should cause the calling function to return since the lambda isn’t marked as crossinline
return@forEachIndexed
diesieben07
08/12/2019, 12:04 PMKavin
08/12/2019, 12:04 PMreturn@forEachIndex
it just skips the index 5 and continues with the next index i.e, 6th.diesieben07
08/12/2019, 12:04 PMfor ((index, value) in list.withIndex()) {
}
arekolek
08/12/2019, 12:04 PMtakeWhile
/ takeUntil
?Shawn
08/12/2019, 12:04 PMKavin
08/12/2019, 12:05 PM