1. Behaviour of store() function with single index
- Posted by dosfreak622 Feb 25, 2013
- 916 views
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.)
2. Re: Behaviour of store() function with single index
- Posted by jimcbrown (admin) Feb 25, 2013
- 950 views
Thanks. This has been fixed in trunk (for both 4.1.0 and 4.0.6).