Sha256: 76f9be6bc756e5c6543cf587cd93c0f0c365e7efb050808d120d401d34bc22b2
Contents?: true
Size: 178 Bytes
Versions: 1
Compression:
Stored size: 178 Bytes
Contents
module Enumerable def map_slice(num, &block) result = [] each_slice(num) { |element| result << yield(element) } result end unless method_defined?(:map_slice) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
space-0.0.9 | lib/core_ext/enumerable/map_slice.rb |