From: ts Date: 2003-11-20T23:34:13+09:00 Subject: Re: (repost) Support for arbitrary iterators in Enumerable? >>>>> "E" == Emmanuel Touzery writes: E> Pierre-Charles David wrote: >>> I would really like to be able to pass the name of an iterator method >> to Enumerable methods. If the parameter value defaults to :each, it >> would not break any existing code. enumerator in 1.8.1 str = "xyz" enum = Enumerable::Enumerator.new(str, :each_byte) a = enum.map {|b| '%02x' % b } #=> ["78", "79", "7a"] Guy Decoux