Skip to content

Commit

Permalink
Tidy up ImmutableDict docstring (JuliaLang#35250)
Browse files Browse the repository at this point in the history
  • Loading branch information
harryscholes authored and oxinabox committed Apr 8, 2020
1 parent 83b6270 commit c503f16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions base/dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -723,14 +723,14 @@ end
"""
ImmutableDict
ImmutableDict is a Dictionary implemented as an immutable linked list,
which is optimal for small dictionaries that are constructed over many individual insertions
`ImmutableDict` is a dictionary implemented as an immutable linked list,
which is optimal for small dictionaries that are constructed over many individual insertions.
Note that it is not possible to remove a value, although it can be partially overridden and hidden
by inserting a new value with the same key
by inserting a new value with the same key.
ImmutableDict(KV::Pair)
Create a new entry in the Immutable Dictionary for the key => value pair
Create a new entry in the `ImmutableDict` for a `key => value` pair
- use `(key => value) in dict` to see if this particular combination is in the properties set
- use `get(dict, key, default)` to retrieve the most recent value for a particular key
Expand Down

0 comments on commit c503f16

Please sign in to comment.