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

Document disagreement of Base.in and Base.getindex for Selection #437

Open
fsaad opened this issue Aug 10, 2021 · 0 comments
Open

Document disagreement of Base.in and Base.getindex for Selection #437

fsaad opened this issue Aug 10, 2021 · 0 comments

Comments

@fsaad
Copy link
Collaborator

fsaad commented Aug 10, 2021

For most data structures, in and getindex tend to agree, although this invariant does not hold for selections, where in checks for a full path down the trie, whereas getindex allows specifying a prefix.

using Gen: select
julia > x = select(:y => 1);
julia > :y in x
false
julia > x[:y]
DynamicSelection(Dict{Any, Selection}(1 => AllSelection()))
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

No branches or pull requests

1 participant