Implement support for Multi-Dimensional Array access
Opened this issue · 0 comments
lvcabral commented
Roku supports multi-dimensional array indexes for roArray
and roList
' three dimensional array
a = [[1,2,["a","b","c"]], [4,5,["d","e","f"]], [7,8,["g","h","i"]]]
print a[1][2][2]'==> f
print a[1,2][2] '==> f
print a[1][2,2] '==> f
print a[1,2,2] '==> f
print a[1,2,3] '==> invalid
'Assign with multi-index
a[2, 1] = true
print a[2, 1] '==> true