Saliou seck
12/14/2023, 12:36 PMShahzad Ansari
12/14/2023, 12:42 PMforEachIndexed
and perform some operations before or after the last iteration.Saliou seck
12/14/2023, 12:51 PMmkrussel
12/14/2023, 12:54 PMSaliou seck
12/14/2023, 1:00 PMval list = listOf(1, 2, 3, 4, 5)
list.forEach { element ->
println(element)
}
println("Done")
with this code i want to know if the foreach is synchrone (compiler execute all print of foreach elements before printing done)?mkrussel
12/14/2023, 1:01 PMSaliou seck
12/14/2023, 1:02 PM