Sha256: 94a42ece9d85a2415288666c54c6a2f1b3a0734099fbe1ca3c7917b1d2008b02

Contents?: true

Size: 106 Bytes

Versions: 3

Compression:

Stored size: 106 Bytes

Contents

module HyperIterator
  def each!(&blk)
    while count > 0
      blk.call(shift)
    end
    nil
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hyper_iterator-0.2.2 lib/iterators/each_bang.rb
hyper_iterator-0.2.1 lib/iterators/each_bang.rb
hyper_iterator-0.2.0 lib/iterators/each_bang.rb