Sha256: 1b2e16b7e7bed32e87ad8e9db907b995685d1a461590c76edaab651ac5bf8610
Contents?: true
Size: 166 Bytes
Versions: 17
Compression:
Stored size: 166 Bytes
Contents
require 'abstractivator/enumerator_ext' module Numbers def from(n, increment=1) Enumerator.unfold(n) { |nxt| [nxt, nxt + increment] } end extend self end
Version data entries
17 entries across 17 versions & 1 rubygems