object NonEmptyList extends LowPriorityNonEmptyListImplicits
- Alphabetic
- By Inheritance
- NonEmptyList
- LowPriorityNonEmptyListImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class Cons[+A](head: A, tail: NonEmptyList[A]) extends NonEmptyList[A] with Product with Serializable
- final case class Single[+A](head: A) extends NonEmptyList[A] with Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
def
NonEmptyListAssociative[A]: Associative[NonEmptyList[A]]
The
Associativeinstance forNonEmptyList. -
implicit
val
NonEmptyListAssociativeEither: AssociativeEither[NonEmptyList]
The
AssociativeEitherinstance forNonEmptyList. -
implicit
val
NonEmptyListCommutativeBoth: CommutativeBoth[NonEmptyList]
The
CommutativeBothinstance forNonEmptyList.The
CommutativeBothinstance forNonEmptyList.- Definition Classes
- LowPriorityNonEmptyListImplicits
-
implicit
val
NonEmptyListCovariant: Covariant[NonEmptyList]
The
Covariantinstance forNonEmptyList. -
implicit
def
NonEmptyListDebug[A](implicit arg0: Debug[A]): Debug[NonEmptyList[A]]
Derives a
Debug[NonEmptyList[A]]given aDebug[A]. -
implicit
val
NonEmptyListDeriveEqual: DeriveEqual[NonEmptyList]
The
DeriveEqualinstance forNonEmptyList. -
implicit
def
NonEmptyListEqual[A](implicit arg0: Equal[A]): Equal[NonEmptyList[A]]
Derives an
Equal[NonEmptyList[A]]given anEqual[A]. -
implicit
def
NonEmptyListHash[A](implicit arg0: Hash[A]): Hash[NonEmptyList[A]]
Derives a
Hash[NonEmptyList[A]]given aHash[A]. -
implicit
val
NonEmptyListIdentityBoth: IdentityBoth[NonEmptyList]
The
IdentityBoth(and thusAssociativeBoth) instance forNonEmptyList. -
implicit
val
NonEmptyListIdentityFlatten: IdentityFlatten[NonEmptyList]
The
IdentityFlatteninstance forNonEmptyList. -
implicit
val
NonEmptyListNonEmptyForEach: NonEmptyForEach[NonEmptyList]
The
NonEmptyForEachinstance forNonEmptyList. -
implicit
def
NonEmptyListOrd[A](implicit arg0: Ord[A]): Ord[NonEmptyList[A]]
Derives an
Ord[NonEmptyList[A]]given anOrd[A].Derives an
Ord[NonEmptyList[A]]given anOrd[A].- Definition Classes
- LowPriorityNonEmptyListImplicits
-
implicit
def
NonEmptyListPartialOrd[A](implicit arg0: PartialOrd[A]): PartialOrd[NonEmptyList[A]]
Derives a
PartialOrd[NonEmptyList[A]]given aPartialOrd[A].Derives a
PartialOrd[NonEmptyList[A]]given aPartialOrd[A].- Definition Classes
- LowPriorityNonEmptyListImplicits
-
def
apply[A](head: A, tail: A*): NonEmptyList[A]
Constructs a
NonEmptyListfrom one or more values. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
cons[A](head: A, tail: NonEmptyList[A]): NonEmptyList[A]
Constructs a
NonEmptyListwith the specified head and tail. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fromCons[A](cons: ::[A]): NonEmptyList[A]
Constructs a
NonEmptyListfrom the::case of aList. -
def
fromIterable[A](head: A, tail: Iterable[A]): NonEmptyList[A]
Constructs a
NonEmptyListfrom an element andIterable. -
def
fromIterableOption[A](iterable: Iterable[A]): Option[NonEmptyList[A]]
Constructs a
NonEmptyListfrom anIterableorNoneotherwise. -
def
fromNonEmptyChunk[A](nonEmptyChunk: NonEmptyChunk[A]): NonEmptyList[A]
Constructs a
NonEmptyListfrom aNonEmptyChunk. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterate[A](start: A)(iterate: (A) ⇒ Option[A]): NonEmptyList[A]
Constructs a
NonEmptyListfrom an initial statestartby repeatedly applyingiterateas long as it returnsSome. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
single[A](head: A): NonEmptyList[A]
Constructs a
NonEmptyListwith the specified single value. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
implicit
def
toCons[A](nonEmptyList: NonEmptyList[A]): ::[A]
Provides an implicit conversion from
NonEmptyListto the::case ofListfor interoperability with Scala's collection library. -
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unfold[S, A](start: S)(project: (S) ⇒ A)(iterate: (S) ⇒ Option[S]): NonEmptyList[A]
Constructs a
NonEmptyListfrom an initial statestartby repeatedly applyingiterateas long as it returnsSome, using the functionprojectto map eachSvalue to anAvalue. -
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )