Sha256: 367997d4bd43e96f0f79ff4c4eeeeaa544ee451e136eedcab084cdc4df97a458
Contents?: true
Size: 151 Bytes
Versions: 3
Compression:
Stored size: 151 Bytes
Contents
module Enumerable def inject_with_index(injected) each_with_index{ |obj, index| injected = yield(injected, obj, index) } injected end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
quant-0.0.5 | lib/enumerable.rb |
quant-0.0.4 | lib/enumerable.rb |
quant-0.0.3 | lib/enumerable.rb |