izumi.fundamentals.collections.nonempty.NonEmptySet$
See theNonEmptySet companion class Companion object for class NonEmptySet
.
Attributes
- Companion:
- class
- Graph
- Supertypes
class Object
trait Matchable
class Any
- Self type
Members list
Concise view
Type members
Attributes
- Graph
- Supertypes
class AnyVal
trait Matchable
class Any
Value members
Constructs a new NonEmptySet
given at least one element.
Constructs a new NonEmptySet
given at least one element.
Attributes
- T
the type of the element contained in the new NonEmptySet
- firstElement
the first element (with index 0) contained in this NonEmptySet
- otherElements
a varargs of zero or more other elements (with index 1, 2, 3, ...) contained in this NonEmptySet
Optionally construct a NonEmptySet
containing the elements, if any, of a given Set
.
Optionally construct a NonEmptySet
containing the elements, if any, of a given Set
.
Attributes
- set
the Set
with which to construct a NonEmptySet
- Returns:
a NonEmptySet
containing the elements of the given GenSeq
, if non-empty, wrapped in
a Some
; else None
if the GenSeq
is empty
Variable argument extractor for NonEmptySet
s.
Variable argument extractor for NonEmptySet
s.
Attributes
- nonEmptySet:
the NonEmptySet
containing the elements to extract
- Returns:
an Seq
containing this NonEmptySet
s elements, wrapped in a Some