Re: Possible feature for new Euphoria-version

new topic     » goto parent     » topic index » view thread      » older message » newer message

I vote for the first alternative, with this addition:

seq={{1,2,3},{4,5,6},{7,8,9}}
a={2,{2,3}}
b=seq[a]
-- b is {5,6}


thus a sequence subscript would provide both single elements and slices.
Thus in the general case

a={w,x,y,z}
seq[a] will have exactly the same effect as seq[w][x][y][z]

-- Mike Nelson

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu