Forbes Lindesay (2013-08-27T00:30:29.000Z)
domenic at domenicdenicola.com (2013-08-31T21:14:31.476Z)
`String#split` already is iterable because it returns an array. What it isn't is **lazy**. To be equivalent to the for code, the let needs to go inside the body of the while, not outside. This neatly demonstrates the key point: - as it stands, writing this kind of code tends to be bug prone (i.e. people get it wrong in confusing ways) - it would be less bug prone if there was just a method that returned an iterable. That _could_ be an Array, rather than a lazy collection.