Skip to content

Commit 0ba854a

Browse files
author
Michael Abbott
committed
enable Base.keys, without sorting out hash
#20
1 parent bfaad4e commit 0ba854a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/struct.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ Base.IndexStyle(A::KeyedArray) = IndexStyle(parent(A))
5454

5555
Base.eachindex(A::KeyedArray) = eachindex(parent(A))
5656

57-
Base.keys(A::KeyedArray) = error("Base.keys(::KeyedArray) not defined, please open an issue if this happens unexpectedly.")
57+
# Base.keys(A::KeyedArray) = error("Base.keys(::KeyedArray) not defined, please open an issue if this happens unexpectedly.") # https://github.com/mcabbott/AxisKeys.jl/issues/20
58+
Base.keys(A::KeyedArray) = Base.keys(parent(A))
5859

5960
Base.pointer(A::KeyedArray, i::Integer) = Base.pointer(parent(A), i)
6061

0 commit comments

Comments
 (0)