Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add empty(::NamedTuple) #32534

Merged
merged 2 commits into from
Jul 10, 2019
Merged

Add empty(::NamedTuple) #32534

merged 2 commits into from
Jul 10, 2019

Conversation

tkf
Copy link
Member

@tkf tkf commented Jul 9, 2019

This PR adds a method empty(::NamedTuple) so that you can run

julia> empty((a=1,b=2))
NamedTuple()

@fredrikekre fredrikekre added the needs news A NEWS entry is required for this change label Jul 9, 2019
@tkf
Copy link
Member Author

tkf commented Jul 9, 2019

I added it in NEWS.md.

@fredrikekre fredrikekre removed the needs news A NEWS entry is required for this change label Jul 9, 2019
@JeffBezanson JeffBezanson merged commit 073cbbb into JuliaLang:master Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants