Sha256: 879b9cee8c85acbdfd164ae5c4e962e95d2c54ebd6fa501d65142e3c1b1357dd

Contents?: true

Size: 205 Bytes

Versions: 34

Compression:

Stored size: 205 Bytes

Contents

ARRAY = (1..100).to_a

ARRAY.map { |e| [e, e] }.flatten(1)

ARRAY.map { |e| [e, e] }.flatten

ARRAY.map do |e|
  [e, e]
end.flatten

ARRAY.map do |e|
  [e, e]
end.flatten(1)

ARRAY.flat_map { |e| [e, e] }

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
fasterer-0.2.0 spec/support/analyzer/10_map_flatten_vs_flat_map.rb
fasterer-0.1.12 spec/support/analyzer/10_map_flatten_vs_flat_map.rb
fasterer-0.1.11 spec/support/analyzer/10_map_flatten_vs_flat_map.rb
fasterer-0.1.10 spec/support/analyzer/10_map_flatten_vs_flat_map.rb
fasterer-0.1.9 spec/support/analyzer/10_map_flatten_vs_flat_map.rb
fasterer-0.1.8 spec/support/analyzer/10_map_flatten_vs_flat_map.rb
fasterer-0.1.7 spec/support/analyzer/10_map_flatten_vs_flat_map.rb
fasterer-0.1.6 spec/support/analyzer/10_map_flatten_vs_flat_map.rb
fasterer-0.1.5 spec/support/analyzer/10_map_flatten_vs_flat_map.rb
fasterer-0.1.4 spec/support/analyzer/10_map_flatten_vs_flat_map.rb
fasterer-0.1.3 spec/support/analyzer/10_map_flatten_vs_flat_map.rb
fasterer-0.1.2 spec/support/analyzer/10_map_flatten_vs_flat_map.rb
fasterer-0.1.1 spec/support/analyzer/10_map_flatten_vs_flat_map.rb
fasterer-0.1.0 spec/support/analyzer/10_map_flatten_vs_flat_map.rb