Re: [Phix] Splicing Anomaly

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

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>)?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu