Ruby collections

Martin Fowler’s latest Bliki post is about the programmatic uses of closures. It’s an interesting read for its own sake, but I found his examples of one-line manipulations of Ruby collections even more useful.