Mode method for Array

What’s inject! ?

It’s the thing you’re talking about, all day… :}

It’s part of Facets:

http://facets.rubyforge.org/doc/api/core/classes/Enumerable.html#M000416

def inject!(s)
k = s
each { |i| yield(k, i) }
k
end

gegroet,
Erik V.