Open gafter opened 1 year ago
From https://github.com/gafter/Rematch2.jl/pull/4#issuecomment-1523123644
When dealing with arrays, the generated code assumes one-based indexing which is fine for most cases, but to support packages like OffsetArrays, we should switch to firstindex(a) / lastindex(a) instead of 1 and length(a) etc.
OffsetArrays
firstindex(a)
lastindex(a)
1
length(a)
From https://github.com/gafter/Rematch2.jl/pull/4#issuecomment-1523123644
When dealing with arrays, the generated code assumes one-based indexing which is fine for most cases, but to support packages like
OffsetArrays
, we should switch tofirstindex(a)
/lastindex(a)
instead of1
andlength(a)
etc.