Loop over the keys of the map.
Loop over the keys of the map. The same as keys.foreach(f), but may be more efficient.
The loop body
Loop over the values of the map.
Loop over the values of the map. The same as values.foreach(f), but may be more efficient.
The loop body
Left biased intersection.
Left biased intersection. Returns the map that has all the same mappings as this but only for keys which are present in the other map.
The type of values in that
.
The map to intersect with.
A map with all the keys both in this
and that
, mapped to corresponding values from this
.
Forms the intersection of these two maps with a combining function.
Forms the intersection of these two maps with a combining function. The
resulting map is a map that has only keys present in both maps and has
values produced from the original mappings by combining them with f
.
The type of values in that
.
The type of values in the resulting SnowflakeMap
.
The map to intersect with.
The combining function.
Intersection of this
and that
, with values for identical keys produced by function f
.
(Changed in version 2.8.0) keys
returns Iterable[A]
rather than Iterator[A]
.
A combined transform and filter function.
A combined transform and filter function. Returns an SnowflakeMap
such that
for each (key, value)
mapping in this map, if f(key, value) == None
the map contains no mapping for key, and if f(key, value)
.
The type of the values in the resulting SnowflakeMap
.
The transforming function.
The modified map.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Forms a union map with that map, using the combining function to resolve conflicts.
Forms a union map with that map, using the combining function to resolve conflicts.
The type of values in that
, a supertype of values in this
.
The map to form a union with.
The function used to resolve conflicts between two mappings.
Union of this
and that
, with identical key conflicts resolved using the function f
.
Updates the map, using the provided function to resolve conflicts if the key is already present.
Updates the map, using the provided function to resolve conflicts if the key is already present.
Equivalent to
this.get(key) match { case None => this.update(key, value) case Some(oldvalue) => this.update(key, f(oldvalue, value) }
The supertype of values in this SnowflakeMap
.
The key to update.
The value to use if there is no conflict.
The function used to resolve conflicts.
The updated map.
(Changed in version 2.8.0) values
returns Iterable[B]
rather than Iterator[B]
.