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
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NonEmptyList
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. 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
  4. 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()
  5. def :::>[AA >: A](bs: List[AA]): NonEmptyList[AA]
  6. def <::[AA >: A](b: AA): NonEmptyList[AA]
  7. def <:::[AA >: A](bs: List[AA]): NonEmptyList[AA]
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def append[AA >: A](f2: NonEmptyList[AA]): NonEmptyList[AA]

    Append one nonempty list to another.

  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
  13. def contains(elem: Any): Boolean
  14. def distinct[AA >: A](implicit A: Order[AA]): NonEmptyList[AA]
  15. 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
  16. 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
  17. 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
  18. 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
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(any: Any): Boolean
    Definition Classes
    NonEmptyList → AnyRef → Any
  21. def exists(p: (A) ⇒ Boolean): Boolean
  22. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def flatMap[B](f: (A) ⇒ NonEmptyList[B]): NonEmptyList[B]
  24. def foreach(f: (A) ⇒ Unit): Unit
  25. 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()
  26. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  27. def hashCode(): Int
    Definition Classes
    NonEmptyList → AnyRef → Any
  28. val head: A
  29. def init: List[A]
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. def last: A
  32. def length: Int
  33. def list: List[A]
  34. def map[B](f: (A) ⇒ B): NonEmptyList[B]
  35. def mkString(sep: String): String
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  39. def reverse: NonEmptyList[A]
  40. def size: Int
  41. def sortBy[B](f: (A) ⇒ B)(implicit o: Order[B]): NonEmptyList[A]
  42. def sortWith(lt: (A, A) ⇒ Boolean): NonEmptyList[A]
  43. def sorted[B >: A](implicit o: Order[B]): NonEmptyList[A]
  44. def stream: Stream[A]
  45. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  46. val tail: List[A]
  47. def tails: NonEmptyList[NonEmptyList[A]]
  48. def toString(): String
    Definition Classes
    NonEmptyList → AnyRef → Any
  49. def toZipper: Zipper[A]
  50. def traverse1[F[_], B](f: (A) ⇒ F[B])(implicit F: Apply[F]): F[NonEmptyList[B]]
  51. def unzip[X, Y](implicit ev: <:<[A, (X, Y)]): (NonEmptyList[X], NonEmptyList[Y])
  52. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. def zip[B](b: ⇒ NonEmptyList[B]): NonEmptyList[(A, B)]
  56. def zipWithIndex: NonEmptyList[(A, Int)]
  57. def zipperEnd: Zipper[A]
  58. 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

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from NonEmptyList[A] to any2stringadd[NonEmptyList[A]]

Inherited by implicit conversion StringFormat from NonEmptyList[A] to StringFormat[NonEmptyList[A]]

Inherited by implicit conversion Ensuring from NonEmptyList[A] to Ensuring[NonEmptyList[A]]

Inherited by implicit conversion ArrowAssoc from NonEmptyList[A] to ArrowAssoc[NonEmptyList[A]]

Ungrouped