init
trait Collection[A] { def init: Collection[A] }
init returns all but the last element of this collection.
On empty collections this function throws a UnsupportedOperationException exception.
UnsupportedOperationException