We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, it would be great, when something like this:
Base.merge(front::NamedTuple, tail::NamedTuple...) = merge(merge(front, tail[1]), tail[2:end]...)
would be available in Base.
It is a very common thing to merge multiple tuples together and would be really a sweet sugar. like this:
julia> A = (a = 1, b = 1); julia> B = (a = 2, c = 2); julia> C = (b = 3, d = 2); julia> merge(A,B,C) (a = 2, b = 3, c = 2, d = 2)
Are there any reasons this is not in Base?
Thanks
The text was updated successfully, but these errors were encountered:
Yes, this could be added.
Sorry, something went wrong.
Added recursive merge function for NamedTuple, addresses JuliaLang#29215
fbe6d28
I created a small PR, using @stakaz 's function definition almost verbatim. It seems to pass namedtuple tests, but I hope I didn't miss something...
namedtuple
Added recursive merge function for NamedTuple, addresses #29215 (#29259)
63f1c16
#29259
No branches or pull requests
Hello, it would be great, when something like this:
would be available in Base.
It is a very common thing to merge multiple tuples together and would be really a sweet sugar. like this:
Are there any reasons this is not in Base?
Thanks
The text was updated successfully, but these errors were encountered: