Module: Enumerable

Defined in:
lib/amitree/utils.rb

Instance Method Summary collapse

Instance Method Details

#map_detect(&block) ⇒ Object



2
3
4
# File 'lib/amitree/utils.rb', line 2

def map_detect &block
  lazy.map(&block).detect{|x| x}
end