`0..len-1` should iterate 0 times for len == 0, not count down from 0 to -1.

Reply via email to