Sha256: b9d3565b222af3e8165a2730e3f288934d9f77012a4e590b5f91501e168219db

Contents?: true

Size: 185 Bytes

Versions: 7

Compression:

Stored size: 185 Bytes

Contents

# Adds the ability to concatenate enumerables with #condense
module EnumerableExtensions
  def condense
    Enumerator.new { |e| each { |seq| seq.each { |v| e << v } } }.lazy
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
file_data-6.0.0 lib/file_data/core_extensions/enumerable_extensions.rb
file_data-5.2.3 lib/file_data/core_extensions/enumerable_extensions.rb
file_data-5.2.2 lib/file_data/core_extensions/enumerable_extensions.rb
file_data-5.2.1 lib/file_data/core_extensions/enumerable_extensions.rb
file_data-5.2.0 lib/file_data/core_extensions/enumerable_extensions.rb
file_data-5.0.0 lib/file_data/core_extensions/enumerable_extensions.rb
file_data-4.0.0 lib/file_data/core_extensions/enumerable_extensions.rb