1. sequence suggestion

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

new topic     » topic index » view message » categorize

2. Re: sequence suggestion

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu