davidavdav / NamedArrays.jl

Julia type that implements a drop-in replacement of Array with named dimensions
Other
118 stars 20 forks source link

Indexing with a different type fails #116

Open tomhaber opened 2 years ago

tomhaber commented 2 years ago

Indexing a NamedArray with a different type than used to create the names dict results in a error. For example, creating a NamedArray with SubStrings (or any WeakRefString) and indexing with a String

Dict allows indexing with other keys as long as it has a suitable hash and isequal method