Skip to content

Conversation

@murari0
Copy link
Contributor

@murari0 murari0 commented Apr 13, 2021

Added a function to base/dict.jl to extend get() to accept a default function as argument, as discussed in, and to resolve #40413.
Added tests to test/dict.jl, in analogy with those defined for get(::Function, ::Dict, key).

@murari0
Copy link
Contributor Author

murari0 commented Apr 15, 2021

The failures seems to be due to an error in the Sockets testset. I can't quite figure out the Stacktrace, but it does not seem to have any relation to the changes in the commits made here so I'm not sure how to fix this.

@vtjnash vtjnash merged commit 3d08f82 into JuliaLang:master Apr 19, 2021
@rfourquet rfourquet added the collections Data structures holding multiple items, e.g. sets label Apr 22, 2021
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this pull request May 9, 2021
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

collections Data structures holding multiple items, e.g. sets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get(f::Function, dict, key) not defined for Base.ImmutableDict

3 participants