Alias for concat
Removes a key from this map, returning a new SortedMap.
Typesafe equality operator.
Typesafe equality operator.
This method is similar to == except that it only allows two NonEmptySet[A] values to be compared to each other, and uses equality provided by Eq[_] instances, rather than using the universal equality provided by .equals.
Adds a key-value pair to this map, returning a new NonEmptyMap
.
Alias for lookup
Appends this NEM to another NEM, producing a new NonEmptyMap
.
Checks whether this map contains a binding for the given key.
Tests whether a predicate holds for at least one element of this map.
Filters all elements of this map that do not satisfy the given predicate.
Filters all elements of this map that satisfy the given predicate.
Returns the first value along with its key, that matches the given predicate.
Left-associative fold using f.
Right-associative fold using f.
Tests whether a predicate holds for all elements of this map.
Returns the first key-value pair of this map.
Returns a SortedSet
containing all the keys of this map.
Returns the last key-value pair of this map.
Returns the amount of key-value pars in this map.
Optionally returns the value associated with the given key.
Applies f to all the elements
Given a function which returns a G effect, thread this effect through the running of this function on all the values in this map, returning an NonEmptyMap[K, B] in a G context.
Reduce using the Semigroup of A
Left-associative reduce using f.
Apply f
to the "initial element" of fa
and combine it with
every other value using the given function g
.
Right-associative reduce using f.
Apply f
to the "initial element" of this map and lazily combine it
with every other value using the given function g
.
Typesafe stringification method.
Typesafe stringification method.
This method is similar to .toString except that it stringifies values according to Show[_] instances, rather than using the universal .toString method.
Returns all the key-value pairs, except for the first.
Converts this map to a SortedMap
.