Skip to content

Ported missing Additions and Updates section in Maps #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions overviews/collections/maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ The fundamental operations on maps are similar to those on sets. They are summar
| `ms contains k` |Tests whether `ms` contains a mapping for key `k`.|
| `ms isDefinedAt k` |Same as `contains`. |
| **Additions and Updates:**| |
| `ms + (k -> v)` |The map containing all mappings of `ms` as well as the mapping `k -> v` from key `k` to value `v`.|
| `ms + (k -> v, l -> w)` |The map containing all mappings of `ms` as well as the given key/value pairs.|
| `ms ++ kvs` |The map containing all mappings of `ms` as well as all key/value pairs of `kvs`.|
| `ms updated (k, v)` |Same as `ms + (k -> v)`.|
| **Removals:** | |
| `ms - k` |The map containing all mappings of `ms` except for any mapping of key `k`.|
| `ms - (k, 1, m)` |The map containing all mappings of `ms` except for any mapping with the given keys.|
| `ms -- ks` |The map containing all mappings of `ms` except for any mapping with a key in `ks`.|
Expand Down