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
Using Counter I was very surprised that Counter(Any) does not work.
Counter(Any)
Given the documentation Count the number of items in a data stream with elements of type T. this sounds like a but, as every element is of type Any.
Count the number of items in a data stream with elements of type T.
Any
The text was updated successfully, but these errors were encountered:
Could you clarify what doesn't work? I don't think I follow you.
julia> o = Counter(Any) Counter: n=0 | value=0 julia> fit!(o, 1) Counter: n=1 | value=1 julia> fit!(o, "hi") Counter: n=2 | value=2
Sorry, something went wrong.
Hi JoshDay, thank you for managing these tickets.
I actually found the misunderstanding
julia> o = Counter(Any) Counter: n=0 | value=0 julia> fit!(o, [1,2,3,4]) Counter: n=1 | value=1
Any is also matching iterators, which makes totally sense. The workaround is iterating yourself.
Ah, right! Glad you worked it out.
No branches or pull requests
Using Counter I was very surprised that
Counter(Any)
does not work.Given the documentation
Count the number of items in a data stream with elements of type T.
this sounds like a but, as every element is of typeAny
.The text was updated successfully, but these errors were encountered: