Sha256: bf7d9111e32ef8cdf5e6fe184a3ce0cbc7636f06066285fd4399dbd81963e595

Contents?: true

Size: 177 Bytes

Versions: 22

Compression:

Stored size: 177 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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
fasterer-0.10.0 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.9.0 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.8.3 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.8.2 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.8.1 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.8.0 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.7.1 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.7.0 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.6.0 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.5.1 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.5.0 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.4.2 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.4.1 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.4.0 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.3.2 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.3.1 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.3.0 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.2.1 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.2.0 spec/support/analyzer/12_select_first_vs_detect.rb
fasterer-0.1.12 spec/support/analyzer/12_select_first_vs_detect.rb