On Sat, 3 Feb 2001, David Alan Black wrote:

> #map is available, though not having each does seem asymmetrical
> (there's #each2, #map, and #map2) and obviously #map is not exactly
> the same thing as #each.

Would adding #each be as simple as adding the following to matrix.rb

  # ENUMERATIONS
  def each
    0.upto(size - 1) do
      |i|
      yield @elements[i]
    end
  end


====================================================
Jim Freeze
jim / freeze.org
--------------------------------------------------- 
** http://www.freeze.org **
====================================================