Sha256: b8d17924a4d3cedc5a2e017e2393ea0b7981c81826c533157bb0c4bf3812d1cc

Contents?: true

Size: 218 Bytes

Versions: 2

Compression:

Stored size: 218 Bytes

Contents

ARRAY = [*1..100]

ARRAY.select { |x| x.eql?(15) }.first

ARRAY.select do |x|
  x.eql?(15)
end.first

ARRAY.select(&:zero?).first

ActiveRecordRelation.new.select('name').first

ARRAY.select { |x| x.eql?(15) }.first(5)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fasterer-0.11.0 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.10.1 spec/support/analyzer/12_select_first_vs_detect.rb