Consider that your iterable may not be a list, and may not actually have a "length" prior to its being consumed
Reply on news.ycombinator.com