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
Consider the following code:
julia> num_dict = Dict(1 => IntSet(1:2), 2 => IntSet(1:3)) Dict{Int64,IntSet} with 2 entries: 2 => IntSet([1, 2, 3]) 1 => IntSet([1, 2]) julia> length(values(num_dict)) 2 julia> length.(values(num_dict)) 2 julia> versioninfo() Julia Version 0.6.0 Commit 903644385b (2017-06-19 13:05 UTC) Platform Info: OS: macOS (x86_64-apple-darwin13.4.0) CPU: Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.9.1 (ORCJIT, haswell)
It seems erroneous to me that in this case length.(values(num_dict)) returns 2 instead of a vector with 3 and 2 as it's elements.
length.(values(num_dict))
2
The text was updated successfully, but these errors were encountered:
Duplicate of #18618
Sorry, something went wrong.
No branches or pull requests
Consider the following code:
It seems erroneous to me that in this case
length.(values(num_dict))
returns2
instead of a vector with 3 and 2 as it's elements.The text was updated successfully, but these errors were encountered: