NamedTuples.jl
NamedTuples.jl copied to clipboard
[DEPRECATED] NamedTuples.jl
At the moment `merge` can merge only two named tuples at a time. It would be good to extend this to allow for collections of named tuples.
Ref: https://discourse.julialang.org/t/package-compatibility-caps/15301
Hello, You are probably aware of https://github.com/JuliaLang/julia/pull/22194 I wonder what will be roadmap for this package as NamedTuples have been merged recently in Julia master branch Kind regards
It would be great if the following syntax ``` julia a = 3 b = "something" x = @NT(a,b) ``` would be equivalent to ``` julia x = @NT(a=>a,b=>b) ```...
Fixes `setindex` so that function can "update" arguments in place and added test. Looks like was an issue with the order of the arguments in `merge` function. Seems to relate...
```julia julia> (a,b) = (1, 2.3) (1, 2.3) julia> @NT(a,b) NamedTuples._NT_a_b julia> @NT(a,b=2.4) ERROR: Invalid tuple, all values must be specified during construction @ (b = 2.4) julia> Pkg.status("NamedTuples") -...
The following will cause an infinite error message and crash julia or flood the RAM ```julia a = zeros(2) a .= @NT( a1=1, a2=2 ) ``` On 0.6.2
Hello, A NamedTuple can be created using ```julia julia> @NT(x,y)(1,2) (x = 1, y = 2) ``` but I wonder if there is a way to create a NamedTuple using...
I was spent some time getting more familiar with the NamedTuples code and I think the best way to have this package be both Julia 0.6 and 0.7 compatible would...
This work: ``` key = @NT(a="aaa") key = merge(key, @NT(b=1)) ``` But this doesn't: ``` key = @NT(a) key = merge(key, @NT(b)) ``` or ``` key = @NT() key =...