NonEmptyList

final
class NonEmptyList[A]

A singly-linked list that is guaranteed to be non-empty.

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def :::>(bs: IList[A]): NonEmptyList[A]
def <::(b: A): NonEmptyList[A]
def <:::(bs: IList[A]): NonEmptyList[A]

Append one nonempty list to another.

Append one nonempty list to another.

def distinct(implicit A: Order[A]): NonEmptyList[A]
override
def equals(any: Any): Boolean
Definition Classes
Any
def flatMap[B](f: A => NonEmptyList[B]): NonEmptyList[B]
def foreach(f: A => Unit): Unit
Since

7.0.3

override
def hashCode: Int
Definition Classes
Any
def init: IList[A]
Since

7.0.2

def last: A
Since

7.0.2

def list: IList[A]
def map[B](f: A => B): NonEmptyList[B]
def size: Int
def sortBy[B](f: A => B)(implicit o: Order[B]): NonEmptyList[A]
Since

7.0.2

def sortWith(lt: (A, A) => Boolean): NonEmptyList[A]
Since

7.0.2

def sorted(implicit o: Order[A]): NonEmptyList[A]
Since

7.0.2

def stream: Stream[A]
override
def toString: String
Definition Classes
Any
def traverse1[F[_], B](f: A => F[B])(implicit F: Apply[F]): F[NonEmptyList[B]]
def unzip[X, Y](implicit ev: Liskov[A, (X, Y)]): (NonEmptyList[X], NonEmptyList[Y])
def zip[B](b: => NonEmptyList[B]): NonEmptyList[(A, B)]
def zipWithIndex: NonEmptyList[(A, Int)]

Concrete fields

val head: A
val tail: IList[A]