1. sequence suggestion
- Posted by ecoder Dec 02, 2011
- 1102 views
a new feature that would be a great addition to the power of euphorias sequence would be to receive a sequence back of all the indexes inside a sequence with a shorthand of this usage:
oldseq = { {10,11,12} , {13,14,15} , {16,17,18} } ele1s = oldseq[1..$][1] ele2s = oldseq[1..$][2] ele3s = oldseq[1..$][3] ele1s = {10,13,16} ele2s = {11,14,17} ele3s = {12,15,18}
and so on... should be much faster and easier than loops, but to implement it is another thing
2. Re: sequence suggestion
- Posted by mattlewis (admin) Dec 02, 2011
- 1102 views
ecoder said...
a new feature that would be a great addition to the power of euphorias sequence would be to receive a sequence back of all the indexes inside a sequence with a shorthand of this usage:
...
should be much faster and easier than loops, but to implement it is another thing
In std/sequence.e, we have the vslice() function which does this.
Matt