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

collect(::Dictionary) doesn't work #20

Closed
c42f opened this issue Jun 1, 2020 · 3 comments
Closed

collect(::Dictionary) doesn't work #20

c42f opened this issue Jun 1, 2020 · 3 comments

Comments

@c42f
Copy link
Collaborator

c42f commented Jun 1, 2020

HashDictionary does work, but not Dictionary:

julia> d = Dictionaries.Dictionary([1], [:a])
1-element Dictionary{Int64,Symbol,Array{Int64,1},Array{Symbol,1}}
 1 │ :a

julia> collect(d)
ERROR: MethodError: no method matching size(::Dictionary{Int64,Symbol,Array{Int64,1},Array{Symbol,1}})
@andyferris
Copy link
Owner

Hmm. This is a HasLength iterator. Why is something calling size without checking it HasShape?

@andyferris
Copy link
Owner

For some reason I wasn't watching/following this repo. Sorry for the delay!

@c42f
Copy link
Collaborator Author

c42f commented Jun 9, 2020

It's all good! Not really affecting me directly I was just testing some things out.

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

2 participants