N-dim dict

Hey all :slight_smile:

I’m looking for something similar like a Array{T,N} but I want to index it with something hashable. I also want to do something like dict[A("key"), :] to get everything from the second dimension with key A("key") in the first dimension.

Thanks

Try NamedArrays.jl. It does what you describe.

1 Like

Looks good. Almost what I need. Do you know of any more general package where the “name” can also be a custom struct?

I think AxisKeys.jl can do that and is quite fast and just generally awesome :slight_smile:

1 Like

Also NDSparse may help API · JuliaDB.jl