Re: [Phix] Splicing Anomaly
- Posted by petelomax Jan 17, 2019
- 973 views
Don't understand. Line 4 only works on phix. Delete that line and I get exactly the same answers from phix and OE.
Line 4 was asking to replace an empty slice with a non-empty one, and that is precisely what it does.
Consecutively, the slice = atom lines are asking to replace 0, then 1, then 2 elements, and that is precisely what it does.
Perhaps it helps if you think of slice = atom as being shorthand for slice = repeat(atom,<implied_length_of_slice>)?