You need a special case when list has less than two elements.
No special case seems needed: inner loop just executes 0 times. (Update: Also works with 5.8.9.)
In reply to Re^2: problem with loop
by AnomalousMonk
in thread problem with loop
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |