Skip to content

Commit f11cd36

Browse files
committed
Ported missing Additions and Updates section in Maps
1 parent b2fb7f4 commit f11cd36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎overviews/collections/maps.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ The fundamental operations on maps are similar to those on sets. They are summar
2929
|`ms contains k`|Tests whether `ms` contains a mapping for key `k`.|
3030
|`ms isDefinedAt k`|Same as `contains`. |
3131
|**Additions and Updates:**||
32+
|`ms + (k -> v)`|The map containing all mappings of `ms` as well as the mapping `k -> v` from key `k` to value `v`.|
33+
|`ms + (k -> v, l -> w)`|The map containing all mappings of `ms` as well as the given key/value pairs.|
34+
|`ms ++ kvs`|The map containing all mappings of `ms` as well as all key/value pairs of `kvs`.|
35+
|`ms updated (k, v)`|Same as `ms + (k -> v)`.|
36+
|**Removals:**||
3237
|`ms - k`|The map containing all mappings of `ms` except for any mapping of key `k`.|
3338
|`ms - (k, 1, m)`|The map containing all mappings of `ms` except for any mapping with the given keys.|
3439
|`ms -- ks`|The map containing all mappings of `ms` except for any mapping with a key in `ks`.|

0 commit comments

Comments
(0)