RE: Strange behavior in sequence handling

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

On Mon, 07 May 2001, Chris Bensler wrote:

> Hi Henri, welcome to Euphoria!
> 
> If you expand the final product of L, you get this..
> L = { { {'a','b','z'} ,1,2} ,4,5}
> 
> Here is a breakdown of each indice in your final sequence..
> L[1] = { {'a','b','z'} ,1,2}
> L[2] = 4
> L[3] = 5
> 
> L[1][1] = {'a','b','z'} -- This is the first assignment you made to L
> L[1][2] = 1
> L[1][3] = 2
> 
> L[1][1][1] = 'a'
> L[1][1][2] = 'b'
> L[1][1][3] = 'z'
> 
> I hope this helps a little..
> 
> Out of curiosity, what were you expecting L[1][1] to be?

Well, I for one, was expecting L[1][]1] to be something other
than about  1000 curly brackets! At least, that's what 
? L[1][1] prints when I try his code.

Regards,
Irv

> Sequences are about the only tricky thing in EU, and even at that, once  
>you get the hang of them, you'll wonder how it could possibly be any  
>simpler! :)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu