Companion object for class NonEmptyMap
.
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- NonEmptyMap.type
Members list
Type members
Classlikes
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Value members
Concrete methods
Constructs a new NonEmptyMap
given at least one element.
Constructs a new NonEmptyMap
given at least one element.
Attributes
- K
the type of the key contained in the new
NonEmptyMap
- V
the type of the value contained in the new
NonEmptyMap
- firstElement
the first element (with index 0) contained in this
NonEmptyMap
- otherElements
a varargs of zero or more other elements (with index 1, 2, 3, ...) contained in this
NonEmptyMap
Optionally construct a NonEmptyMap
containing the elements, if any, of a given Seq
.
Optionally construct a NonEmptyMap
containing the elements, if any, of a given Seq
.
Attributes
- K
the type of the key contained in the new
NonEmptyMap
- V
the type of the value contained in the new
NonEmptyMap
- seq
the
Seq
with which to construct aNonEmptyMap
- Returns:
a
NonEmptyMap
containing the elements of the givenSeq
, if non-empty, wrapped in aSome
; elseNone
if theSeq
is empty
Variable argument extractor for NonEmptyMap
s.
Variable argument extractor for NonEmptyMap
s.
Attributes
- K
the type of the key contained in the
NonEmptyMap
- V
the type of the value contained in the
NonEmptyMap
- nonEmptyMap:
the
NonEmptyMap
containing the elements to extract- Returns:
an
Seq
containing thisNonEmptyMap
s elements, wrapped in aSome