Re: Another quick sequence feature request!
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Sep 24, 2004
- 431 views
On Thu, 23 Sep 2004 19:42:08 -0500, William Heimbigner <icxcnika at hotpop.com> wrote: >Hey Rob, could you implement the following: > >x[*][1] > >would be: > >{x[1][1],x[2][1],x[3][1], etc etc etc} > >I don't know what that would do to the e2c translator abilities, but it >would be nice if its possible... why not just use: function of_all(sequence s, integer element) sequence t t=repeat(0,length(s)) for i=1 to length(s) do t[i]=s[i][element] end for return t end function constant x={{1,2},{3,4}} ?of_all(x,1) -- prints {1,3} ?of_all(x,2) -- prints {2,4} Regards, Pete