Oct 20
Ruby 1.9 has some nice new methods on the Enumerable class; for example,
each_cons, which iterates through consecutive slices of an array. You can add
these to Ruby 1.8 with
require 'enumerator'
require 'enumerator'