Companion object for class NEList.
Attributes
Members list
Value members
Concrete methods
Constructs a new NEList of one element
Constructs a new NEList of one element
Attributes
Constructs a new NEList given at least two elements.
Constructs a new NEList given at least two elements.
Type parameters
- T
-
the type of the element contained in the new
NEList
Value parameters
- firstElement
-
the first element (with index 0) contained in this
NEList - otherElements
-
a varargs of zero or more other elements (with index 1, 2, 3, ...) contained in this
NEList
Attributes
Constructs a new NEList given at least one element.
Constructs a new NEList given at least one element.
Attributes
Optionally construct a NEList containing the elements, if any, of a given List.
Optionally construct a NEList containing the elements, if any, of a given List.
Value parameters
- list
-
the
Listwith which to construct aNEList
Attributes
- Returns
-
a
NEListcontaining the elements of the givenList, if non-empty, wrapped in aSome; elseNoneif theListis empty
Optionally construct a NEList containing the elements, if any, of a given Seq.
Optionally construct a NEList containing the elements, if any, of a given Seq.
Value parameters
- seq
-
the
Seqwith which to construct aNEList
Attributes
- Returns
-
a
NEListcontaining the elements of the givenSeq, if non-empty, wrapped in aSome; elseNoneif theSeqis empty
Variable argument extractor for NELists.
Variable argument extractor for NELists.
Value parameters
- NEList:
-
the
NEListcontaining the elements to extract
Attributes
- Returns
-
an
Seqcontaining thisNELists elements, wrapped in aSome