Re: Allow a sequence as a subscript
- Posted by ArthurCrump Sep 22, 2010
- 1039 views
A more immediate solution would be to use a function to get the required element. I think the following function might work, but I have not tested it very well.
function getElement( object array, object subscripts ) subscripts &= {} -- Make it a sequence for n = 1 to length(subscripts) do array = array[subscripts[n]] end for return array end function