[poll] all element reference
- Posted by Salix <salix at ?ree?ail.hu> Aug 21, 2007
- 487 views
Hello, I'd like to test an idea that could be useful in some cases. Would it be a great amount of work to introduce * in the sequence referencing? I would also appreciate "high level" comments whether it breaks the logic of the language in any ways...
constant x={ {"John",1}, {"Mary",5}, {"Andy",2}, {"Suse",7}, {"Jack",5}} -- following line would print {1,5,2,7,5} ? x[*][2]
For me the major advantage would be in cases like this:
-- following line would return 4 ? find(7,x[*][2]) -- currently the search should be handled like this for i=1 to length(x) by 1 do if x[i][2]=7 then ? i exit end if end for
What do you think? Yours, Salix