InvertedIndices.jl
InvertedIndices.jl copied to clipboard
`NamedTuples` not working
On version 1.1:
julia> tup = (x=1, y=2)
(x = 1, y = 2)
julia> tup[Not(:x)]
ERROR: MethodError: no method matching getindex(::NamedTuple{(:x, :y), Tuple{Int64, Int64}}, ::InvertedIndex{Symbol})
Closest candidates are:
getindex(::NamedTuple, ::Int64) at /usr/share/julia/base/namedtuple.jl:126
getindex(::NamedTuple, ::Symbol) at /usr/share/julia/base/namedtuple.jl:127
getindex(::NamedTuple, ::Tuple{Vararg{Symbol}}) at /usr/share/julia/base/namedtuple.jl:128
...
Stacktrace:
[1] top-level scope
@ REPL[26]:1
Looks like someone forgot to make a new release after the last merge? @nalimilan could you make one?