Why should that last one return an empty list?
Noone answered the question, and I'm also interested in knowing too. I don't know why they don't all behave one way or the other.
If there's a reason to do it for list slices, the same reason exists for array slices. If there's no reason to do it for array slices, there's not reason to use it for list slices.
Update: Added "slices" to avoid confusion.
In reply to Re: Array/List Strangeness
by ikegami
in thread Array/List Strangeness
by Manchego
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |