Skip to content

Commit 07f53bc

Browse files
fix: handle StableIndex when indexing Arr
1 parent 541c4dc commit 07f53bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/array-lib.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function wrapper_fn_from_idxs(x::Arr{T, N}, idxs...) where {T, N}
1111
nd = _indexed_ndims(idxs...)
1212
return nd == 0 ? is_wrapper_type(T) ? T : identity : Arr{T, nd}
1313
end
14+
wrapper_fn_from_idxs(x::Arr{T, N}, idx::SymbolicUtils.StableIndex{Int}) where {T, N} = T
1415
# Wrapped array should wrap the elements too
1516
function Base.getindex(x::Arr{T, N}, idx::CartesianIndex{N}) where {T, N}
1617
if is_wrapper_type(T)

0 commit comments

Comments
 (0)