The forEach function evaluates each element of the list:
var numbers = listOf<Int>(1,2,3,4,5,6,7,8,9,10)
println("Print all elements of list")
numbers.forEach{ println(it)}
The forEach function evaluates each element of the list:
var numbers = listOf<Int>(1,2,3,4,5,6,7,8,9,10)
println("Print all elements of list")
numbers.forEach{ println(it)}
3.21.106.7