|
|
Wasn't it bugman who wrote:
>OK, I have a slightly different question. Is there any way to extract an
>array element in a function? For example:
>
>#declare xlist=array[3] {5.5,2.1,7.8};
>#declare getx=function(i) {xlist[int(i-1)]};
The nearest I've managed to get is this:
http://www.econym.demon.co.uk/isotut/arrays.htm
You can use the individual elements of arrays, but you can't index an
array from inside a function.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|