Exercise: Interval Index
Index
<<
>>
I←{¯1+(≢⍺)↓i⊣i[i]←+\(≢⍺)>i←⍋⍺⍪⍵}
a.
Modify
I
to work in either index origin.
b.
Modify
I
to work for higher-rank
⍵
.