final class ListOps[A] extends AnyVal
- Source
- list.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ListOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ListOps(list: List[A])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def tailOption: Option[NonEmptyList[A]]
Returns
Some
if the tail is non-empty, otherwiseNone
.Returns
Some
if the tail is non-empty, otherwiseNone
.- Annotations
- @inline()
- def tailOrEmpty: List[A]
A safe counterpart to
List.tail
that returnsNil
for an empty list.A safe counterpart to
List.tail
that returnsNil
for an empty list.- Annotations
- @inline()
- def toString(): String
- Definition Classes
- Any