1. Re: Here we go.... :)
>my_seq{1,{2,3,4},5,6,7,8}
That isn't legal Euphoria code, did you mean:
my_seq = {1, {2,3,4}, 5, 6, 7, 8}
If that is the case, then consider the above situation a tree. The tree has
4 branches. The first has a '1' attached to it. The second has another
branch attachted. On that branch you can find the values '2', '3' and '4'.
In other words: you need to go down the second branch to reach out for those
values.
However '5', is the third branch. You only need to go down that single
branch.
This is how you acces '5':
? my_seq[3]
-- displays: '5'
I use the '?' to display the value on the screen.
'?' will display any kind of Euphoria object.
? my_seq[2]
-- displays: '{2, 3, 4}'
? my_seq[2][1]
-- displays: '2'
? my_seq[1]
-- displays: '1'
I hope this clears things up a bit.
Good luck,
Ralf N.
nieuwen at xs4all.nl