foreach

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)}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.106.7