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
  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
    @native() @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 find(p: (A) ⇒ Boolean): Option[A]
  24. def flatMap[B](f: (A) ⇒ NonEmptyList[B]): NonEmptyList[B]
  25. def foreach(f: (A) ⇒ Unit): Unit
  26. 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()
  27. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. def hashCode(): Int
    Definition Classes
    NonEmptyList → AnyRef → Any
  29. val head: A
  30. def init: List[A]
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. def last: A
  33. def length: Int
  34. def list: List[A]
  35. def map[B](f: (A) ⇒ B): NonEmptyList[B]
  36. def mkString(sep: String): String
  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. def reverse: NonEmptyList[A]
  41. def size: Int
  42. def sortBy[B](f: (A) ⇒ B)(implicit o: Order[B]): NonEmptyList[A]
  43. def sortWith(lt: (A, A) ⇒ Boolean): NonEmptyList[A]
  44. def sorted[B >: A](implicit o: Order[B]): NonEmptyList[A]
  45. def stream: Stream[A]
  46. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  47. val tail: List[A]
  48. def tails: NonEmptyList[NonEmptyList[A]]
  49. def toString(): String
    Definition Classes
    NonEmptyList → AnyRef → Any
  50. def toZipper: Zipper[A]
  51. def traverse1[F[_], B](f: (A) ⇒ F[B])(implicit F: Apply[F]): F[NonEmptyList[B]]
  52. def unzip[X, Y](implicit ev: <:<[A, (X, Y)]): (NonEmptyList[X], NonEmptyList[Y])
  53. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  56. def zip[B](b: ⇒ NonEmptyList[B]): NonEmptyList[(A, B)]
  57. def zipWithIndex: NonEmptyList[(A, Int)]
  58. def zipperEnd: Zipper[A]
  59. 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