title: undefined method `>' for nil:NilClass in ruby array
body: <p><code>c = [1,2,3,4,5,6,7,nil,nil,nil]
  c.map{ |i| p i if i &gt; 10 }
  </code></p>
  
  <p>NoMethodError: undefined method `>' for nil:NilClass</p>
  
  <p>How to avoid 'nil' values during comparison?</p>