Method: Enumerable#select_map

Defined in:
lib/zip/stdrubyext.rb

#select_map(&aProc) ⇒ Object

returns a new array of all the return values not equal to nil This implementation could be faster



13
14
15
# File 'lib/zip/stdrubyext.rb', line 13

def select_map(&aProc)
  map(&aProc).reject { |e| e.nil? }
end