list.tail scala code example Example: list.tail scala def tail: List[A] The rest of the collection without its first element.