object NonEmptyList extends NonEmptyListInstances with Serializable
- Source
- NonEmptyList.scala
- Alphabetic
- By Inheritance
- NonEmptyList
- Serializable
- Serializable
- NonEmptyListInstances
- NonEmptyListInstances0
- NonEmptyListInstances1
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final class ZipNonEmptyList[A] extends AnyVal
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
implicit
def
catsDataEqForNonEmptyList[A](implicit A: Eq[A]): Eq[NonEmptyList[A]]
- Definition Classes
- NonEmptyListInstances1
-
implicit
val
catsDataInstancesForNonEmptyList: SemigroupK[NonEmptyList] with Bimonad[NonEmptyList] with NonEmptyTraverse[NonEmptyList] with Align[NonEmptyList]
This is not a bug.
This is not a bug. The declared type of
catsDataInstancesForNonEmptyList
intentionally ignoresNonEmptyReducible
trait for it not being a typeclass.Also see the discussion: PR #3541 and issue #3069.
- Definition Classes
- NonEmptyListInstances
-
implicit
def
catsDataNonEmptyParallelForNonEmptyList[A]: Aux[NonEmptyList, ZipNonEmptyList]
- Definition Classes
- NonEmptyListInstances
-
implicit
def
catsDataOrderForNonEmptyList[A](implicit A: Order[A]): Order[NonEmptyList[A]]
- Definition Classes
- NonEmptyListInstances
-
implicit
def
catsDataPartialOrderForNonEmptyList[A](implicit A: PartialOrder[A]): PartialOrder[NonEmptyList[A]]
- Definition Classes
- NonEmptyListInstances0
-
implicit
def
catsDataSemigroupForNonEmptyList[A]: Semigroup[NonEmptyList[A]]
- Definition Classes
- NonEmptyListInstances
-
implicit
def
catsDataShowForNonEmptyList[A](implicit A: Show[A]): Show[NonEmptyList[A]]
- Definition Classes
- NonEmptyListInstances
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def fromFoldable[F[_], A](fa: F[A])(implicit F: Foldable[F]): Option[NonEmptyList[A]]
-
def
fromList[A](l: List[A]): Option[NonEmptyList[A]]
Create a
NonEmptyList
from aList
.Create a
NonEmptyList
from aList
.The result will be
None
if the input list is empty andSome
wrapping aNonEmptyList
otherwise.- See also
fromListUnsafe for an unsafe version that throws an exception if the input list is empty.
-
def
fromListUnsafe[A](l: List[A]): NonEmptyList[A]
Create a
NonEmptyList
from aList
, or throw anIllegalArgumentException
if the input list is empty.Create a
NonEmptyList
from aList
, or throw anIllegalArgumentException
if the input list is empty.- See also
fromList for a safe version that returns
None
if the input list is empty.
- def fromReducible[F[_], A](fa: F[A])(implicit F: Reducible[F]): NonEmptyList[A]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def of[A](head: A, tail: A*): NonEmptyList[A]
- def ofInitLast[A](init: List[A], last: A): NonEmptyList[A]
- def one[A](head: A): NonEmptyList[A]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )
- object ZipNonEmptyList