final class NonEmptyList[+A] extends AnyRef
A singly-linked list that is guaranteed to be non-empty.
Forked from Scalaz 7.1 after moving past Scalaz 7.1 out of a desire to maintain
one based on List
.
- Source
- NonEmptyList.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- NonEmptyList
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from NonEmptyList[A] to any2stringadd[NonEmptyList[A]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (NonEmptyList[A], B)
- Implicit
- This member is added by an implicit conversion from NonEmptyList[A] to ArrowAssoc[NonEmptyList[A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- def :::>[AA >: A](bs: List[AA]): NonEmptyList[AA]
- def <::[AA >: A](b: AA): NonEmptyList[AA]
- def <:::[AA >: A](bs: List[AA]): NonEmptyList[AA]
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
append[AA >: A](f2: NonEmptyList[AA]): NonEmptyList[AA]
Append one nonempty list to another.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
- def contains(elem: Any): Boolean
- def distinct[AA >: A](implicit A: Order[AA]): NonEmptyList[AA]
-
def
ensuring(cond: (NonEmptyList[A]) ⇒ Boolean, msg: ⇒ Any): NonEmptyList[A]
- Implicit
- This member is added by an implicit conversion from NonEmptyList[A] to Ensuring[NonEmptyList[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (NonEmptyList[A]) ⇒ Boolean): NonEmptyList[A]
- Implicit
- This member is added by an implicit conversion from NonEmptyList[A] to Ensuring[NonEmptyList[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): NonEmptyList[A]
- Implicit
- This member is added by an implicit conversion from NonEmptyList[A] to Ensuring[NonEmptyList[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): NonEmptyList[A]
- Implicit
- This member is added by an implicit conversion from NonEmptyList[A] to Ensuring[NonEmptyList[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(any: Any): Boolean
- Definition Classes
- NonEmptyList → AnyRef → Any
- def exists(p: (A) ⇒ Boolean): Boolean
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def flatMap[B](f: (A) ⇒ NonEmptyList[B]): NonEmptyList[B]
- def foreach(f: (A) ⇒ Unit): Unit
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from NonEmptyList[A] to StringFormat[NonEmptyList[A]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- NonEmptyList → AnyRef → Any
- val head: A
- def init: List[A]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def last: A
- def length: Int
- def list: List[A]
- def map[B](f: (A) ⇒ B): NonEmptyList[B]
- def mkString(sep: String): String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def reverse: NonEmptyList[A]
- def size: Int
- def sortBy[B](f: (A) ⇒ B)(implicit o: Order[B]): NonEmptyList[A]
- def sortWith(lt: (A, A) ⇒ Boolean): NonEmptyList[A]
- def sorted[B >: A](implicit o: Order[B]): NonEmptyList[A]
- def stream: Stream[A]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tail: List[A]
- def tails: NonEmptyList[NonEmptyList[A]]
-
def
toString(): String
- Definition Classes
- NonEmptyList → AnyRef → Any
- def toZipper: Zipper[A]
- def traverse1[F[_], B](f: (A) ⇒ F[B])(implicit F: Apply[F]): F[NonEmptyList[B]]
- def unzip[X, Y](implicit ev: <:<[A, (X, Y)]): (NonEmptyList[X], NonEmptyList[Y])
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def zip[B](b: ⇒ NonEmptyList[B]): NonEmptyList[(A, B)]
- def zipWithIndex: NonEmptyList[(A, Int)]
- def zipperEnd: Zipper[A]
-
def
→[B](y: B): (NonEmptyList[A], B)
- Implicit
- This member is added by an implicit conversion from NonEmptyList[A] to ArrowAssoc[NonEmptyList[A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc