Re: Phix wiki 3
- Posted by euphoric (admin) Jan 24, 2021
- 1034 views
[quote _tom]
euphoric said...
_tom said...
Slicing is a left to right action:
sequence s = { 1,2,3,4} ? s[1..3 ] // {1,2,3} ? s[1..-2] // {1,2,3}
Should that second slice be {1,2,3} also?
yup, - - and / / are line comments
_tom
My comment had nothing to do with the comment marks. I was asking about the slicing result.
sequence s = { 1,2,3,4} ? s[1..3 ] // {1,2,3} ? s[1..-2] // {1,2,3} <-- fixed?