nalimilan / FreqTables.jl

Frequency tables in Julia
Other
90 stars 19 forks source link

numeric values are not indexed as keys #2

Closed davidavdav closed 9 years ago

davidavdav commented 9 years ago

This may be a problem of NamedArrays.

julia> freqtable([0,1])
ERROR: BoundsError()
 in setindex! at /Users/david/.julia/v0.3/NamedArrays/src/index.jl:72
 in freqtable at /Users/david/werk/julia/Tables.jl/src/freqtable.jl:69

Problem is the values (0, 1) are the keys the dicts used in NamedArrays. getindex() works, but setindex!() not.

davidavdav commented 9 years ago

Fixed by https://github.com/davidavdav/NamedArrays.jl/commit/fa78640b3d516905f7d6883843648c0f3e0296f9

nalimilan commented 9 years ago

Cool, thanks!