last
Returns the last element.
fun IntProgression.last(): Int(source)
fun main() {
val progression = 1..10
println(progression.last()) // 10
}
Returns the last element.
fun IntProgression.last(): Int(source)
fun main() {
val progression = 1..10
println(progression.last()) // 10
}