scala last element in list code example
Example: scala last element in list
val mylist: List[String] = List("hello", "world", "!")
println("Last element is: " + mylist.last)
val mylist: List[String] = List("hello", "world", "!")
println("Last element is: " + mylist.last)