in reply to Re: problem with loopin thread problem with loop
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.)