title: Diference beetwen detect{} and select{}[0]
body: <p>I'm consider about diference beetwen these methods in ruby. I know, <code>select</code> returns an array of elements, and <code>detect</code> return only one and first consisten element. But is there any diference if i type <code>array.select{ condition }[0]</code>? It will return first unit like <code>detect</code>. 
  For example:</p>
  
  <pre><code>a = [2,3,4,5]
  a.detect{|k| k.even? }
  # =&gt; 2
  a.select{|k| k.even? }[0]
  # =&gt; 2
  </code></pre>
  
  <p>Anyone can explain me other distinctions beetwen these methods and give me some examples when <code>detect</code> will be better than <code>select</code>? </p>