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
Associative
instance forNonEmptyList
. -
implicit
val
NonEmptyListAssociativeEither: AssociativeEither[NonEmptyList]
The
AssociativeEither
instance forNonEmptyList
. -
implicit
val
NonEmptyListCommutativeBoth: CommutativeBoth[NonEmptyList]
The
CommutativeBoth
instance forNonEmptyList
.The
CommutativeBoth
instance forNonEmptyList
.- Definition Classes
- LowPriorityNonEmptyListImplicits
-
implicit
val
NonEmptyListCovariant: Covariant[NonEmptyList]
The
Covariant
instance 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
DeriveEqual
instance 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
IdentityFlatten
instance forNonEmptyList
. -
implicit
val
NonEmptyListNonEmptyForEach: NonEmptyForEach[NonEmptyList]
The
NonEmptyForEach
instance 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
NonEmptyList
from one or more values. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
cons[A](head: A, tail: NonEmptyList[A]): NonEmptyList[A]
Constructs a
NonEmptyList
with the specified head and tail. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromCons[A](cons: ::[A]): NonEmptyList[A]
Constructs a
NonEmptyList
from the::
case of aList
. -
def
fromIterable[A](head: A, tail: Iterable[A]): NonEmptyList[A]
Constructs a
NonEmptyList
from an element andIterable
. -
def
fromIterableOption[A](iterable: Iterable[A]): Option[NonEmptyList[A]]
Constructs a
NonEmptyList
from anIterable
orNone
otherwise. -
def
fromNonEmptyChunk[A](nonEmptyChunk: NonEmptyChunk[A]): NonEmptyList[A]
Constructs a
NonEmptyList
from aNonEmptyChunk
. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterate[A](start: A)(iterate: (A) ⇒ Option[A]): NonEmptyList[A]
Constructs a
NonEmptyList
from an initial statestart
by repeatedly applyingiterate
as long as it returnsSome
. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
single[A](head: A): NonEmptyList[A]
Constructs a
NonEmptyList
with 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
NonEmptyList
to the::
case ofList
for 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
NonEmptyList
from an initial statestart
by repeatedly applyingiterate
as long as it returnsSome
, using the functionproject
to map eachS
value to anA
value. -
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( ... ) @native()