Answers for "scala last element in list"

1

scala last element in list

val mylist: List[String] = List("hello", "world", "!")
println("Last element is: " + mylist.last)
Posted by: Guest on June-03-2021

Code answers related to "Scala"

Browse Popular Code Answers by Language