Behaviour of store() function with single index

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

I tried to use the store() function from the standard library. In my code the length of the sequence of indices varies dynamically. When there is only one index the store() function returns strange results, but otherwise seems to work according the description.

For example,

include std/sequence.e 
? store({1, 2, 3}, {2}, 100) 

prints out

{ 
  1, 
  {1,100,3}, 
  3 
} 

I expected that it would print out {1, 100, 3}. I get the same result with both 4.0.4 and 4.0.5 on Linux. The output on my computer agrees with the one example in the Euphoria Manual. Am I misunderstanding the documentation or is there a problem with the store function?

(By the way, I really appreciate the effort that has gone into the 4 series of Euphoria.)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu