https://github.com/JuliaLang/julia
Revision 60bab00ea1440e6fafa9922b306b7d956ea0aede authored by Rafael Fourquet on 04 June 2020, 20:49:43 UTC, committed by KristofferC on 04 June 2020, 20:51:10 UTC
It could only handle a couple of pairs, e.g.
ImmutableDict(1=>1, 2=>2, 3=>3) would throw.

The fix is implemented by adding the
`ImmutableDict(t::ImmutableDict, pairs...)` constructor,
which generalizes `ImmutableDict(t::ImmutableDict, pair)`
(with some similarity to how `push!` accepts multiple items
to be pushed).

(cherry picked from commit 162cde194c2c303a69d3689f5992ff7df6358363)
1 parent 5c236b4
History
Tip revision: 60bab00ea1440e6fafa9922b306b7d956ea0aede authored by Rafael Fourquet on 04 June 2020, 20:49:43 UTC
fix ImmutableDict(pairs...) constructor (#36143)
Tip revision: 60bab00
File Mode Size
.devcontainer
base
contrib
deps
doc
etc
src
stdlib
test
ui
.appveyor.yml -rw-r--r-- 2.1 KB
.gitattributes -rw-r--r-- 65 bytes
.gitignore -rw-r--r-- 273 bytes
.mailmap -rw-r--r-- 11.0 KB
.travis.yml -rw-r--r-- 6.1 KB
CITATION.bib -rw-r--r-- 2.6 KB
CONTRIBUTING.md -rw-r--r-- 19.9 KB
HISTORY.md -rw-r--r-- 275.6 KB
LICENSE.md -rw-r--r-- 5.0 KB
Make.inc -rw-r--r-- 44.1 KB
Makefile -rw-r--r-- 26.9 KB
NEWS.md -rw-r--r-- 16.4 KB
README.md -rw-r--r-- 6.3 KB
VERSION -rw-r--r-- 10 bytes
sysimage.mk -rw-r--r-- 3.9 KB

README.md

back to top