More on iteration
Saturday, September 30th, 2006
While iterators (which I covered in my last post) are fantastic, there is more to iteration than that. I’ll cover three common uses for loops and how they can be rewritten in a way that makes your code more reusable and maintainable. Two of the tricks are from the esoteric land of functional programming, and one from Ruby, a cousin of the ActionScript language.