Reputation: 677
For convenience I would like to be able to reference elements of a static look up table implemented as a 1d array like this
Item = [1,7,2,5,3](I)
Where I is an integer index to the static array in the square brackets. I know I can declare a named array and use that, but I’m wondering if there’s an appropriate syntax for the above intent.
Upvotes: 1
Views: 37