Skip to content

Commit 25206a3

Browse files
authored
Update about.md
1 parent c71d8ca commit 25206a3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

concepts/pairs-and-dicts/about.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ julia> length(pv)
5151
A [`Dict`][dict] is superficially similar, but storage is now implemented in a way that allows fast retrieval by key, known as a "hash table", even when the number of entries grows large.
5252

5353
```julia-repl
54-
julia> pd = Dict(pv)
54+
julia> pd = Dict('a' => 1, 'b' => 2, 'c' => 3) # or Dict(pv) gives same result
5555
Dict{Char, Int64} with 3 entries:
5656
'a' => 1
5757
'c' => 3
@@ -90,6 +90,12 @@ See the [manual][dict] for several other variants on the `Dict` type.
9090
Entries can be added, with a new key, or overwritten, with an existing key.
9191

9292
```julia-repl
93+
julia> pd
94+
Dict{Char, Int64} with 3 entries:
95+
'a' => 1
96+
'c' => 3
97+
'b' => 2
98+
9399
# Add
94100
julia> pd['d'] = 4
95101
4

0 commit comments

Comments
 (0)