Commit e073818
committed
Implement setindex for Base.ImmutableDict
The design of Base.ImmutableDict allows the same key to be added again, which
shadows the previously added value. Unfortunately, it still prints out all of
the entries, including repeated keys. I thought this might be confusing, so I
implemented it to remove the value if the key exists and then add the new value.
Closes #2161 parent 4e3d9e5 commit e073818
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| |||
0 commit comments