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

Hackiness of InvertedIndexIterator printing #24

Open
phipsgabler opened this issue Jun 15, 2021 · 0 comments
Open

Hackiness of InvertedIndexIterator printing #24

phipsgabler opened this issue Jun 15, 2021 · 0 comments

Comments

@phipsgabler
Copy link

It's a really minor thing, but displaying InvertedIndexIterator as Not (cf. this line) made it really hard for me to find out how to convert an inverted index to a normal one...

julia> r
3×3 Array{Float64,2}:
 0.103825   0.287749  0.720987
 0.0868532  0.938357  0.445691
 0.526585   0.753124  0.0108292

julia> to_indices(r, (Not(2), :)) # huh?
(Not(2), Base.Slice(Base.OneTo(3)))

julia> collect(to_indices(r, (Not(2), :))[1]) # aha! this is _not_ Not!
2-element Array{Int64,1}:
 1
 3

I agree that it's somewhat superior to writing out the whole word InvertedIndexIterator, but the confusion with InvertedIndex is there. Perhaps add the picks to the printout?

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