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
AbstractIndices
itr
An example with setdiff:
setdiff
julia> d1 = Indices(["A","B","C"]); julia> c1 = ["B","C","D"]; julia> setdiff(d1, c1) ERROR: MethodError: no method matching setdiff!(::Indices{String}, ::Vector{String})
Similarly with intersect
intersect
julia> intersect(d1, c1) ERROR: MethodError: no method matching intersect!(::Indices{String}, ::Vector{String})
I would expect these operations to return an Indices{String} with the result, which would be consistent with the behaviour of union
Indices{String}
union
julia> union(d1, c1) 4-element Indices{String} "A" "B" "C" "D"
The text was updated successfully, but these errors were encountered:
Right - this does seem like something we can and should fix, using the same dispatch pattern as Base does.
Base
Sorry, something went wrong.
No branches or pull requests
An example with
setdiff
:Similarly with
intersect
I would expect these operations to return an
Indices{String}
with the result, which would be consistent with the behaviour ofunion
The text was updated successfully, but these errors were encountered: