Attributes
- Companion
- class
- Source
- NonEmptyList.scala
- Graph
-
- Supertypes
- Self type
-
NonEmptyList.type
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Source
- NonEmptyList.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Companion
- class
- Source
- NonEmptyList.scala
- Supertypes
- Self type
-
ZipNonEmptyList.type
Inherited types
The names of the product elements
The name of the type
Value members
Concrete methods
Attributes
- Source
- NonEmptyList.scala
Create a NonEmptyList
from a List
.
Create a NonEmptyList
from a List
.
The result will be None
if the input list is empty and Some
wrapping a NonEmptyList
otherwise.
Attributes
- See also
-
fromListUnsafe for an unsafe version that throws an exception if the input list is empty.
- Source
- NonEmptyList.scala
Create a NonEmptyList
from a List
, or throw an IllegalArgumentException
if the input list is empty.
Create a NonEmptyList
from a List
, or throw an IllegalArgumentException
if the input list is empty.
Attributes
- See also
-
fromList for a safe version that returns
None
if the input list is empty. - Source
- NonEmptyList.scala
Attributes
- Source
- NonEmptyList.scala
Attributes
- Source
- NonEmptyList.scala
Attributes
- Source
- NonEmptyList.scala
Attributes
- Source
- NonEmptyList.scala
Deprecated and Inherited methods
Attributes
- Deprecated
- true
- Inherited from:
- NonEmptyListInstances (hidden)
- Source
- NonEmptyList.scala
Implicits
Inherited implicits
Attributes
- Inherited from:
- NonEmptyListInstances1 (hidden)
- Source
- NonEmptyList.scala
This is not a bug.
This is not a bug. The declared type of catsDataInstancesForNonEmptyList
intentionally ignores NonEmptyReducible
trait for it not being a typeclass.
Also see the discussion: PR #3541 and issue #3069.
Attributes
- Inherited from:
- NonEmptyListInstances (hidden)
- Source
- NonEmptyList.scala
Attributes
- Inherited from:
- NonEmptyListInstances (hidden)
- Source
- NonEmptyList.scala
Attributes
- Inherited from:
- NonEmptyListInstances (hidden)
- Source
- NonEmptyList.scala
Attributes
- Inherited from:
- NonEmptyListInstances0 (hidden)
- Source
- NonEmptyList.scala
Attributes
- Inherited from:
- NonEmptyListInstances (hidden)
- Source
- NonEmptyList.scala
Attributes
- Inherited from:
- NonEmptyListInstances (hidden)
- Source
- NonEmptyList.scala