module Enumerable

def find_map(&block)

calls the block with successive elements; returns the first truthy object returned by the block
def find_map(&block)
  each do |element|
    mapped_value = block.call(element)
    return mapped_value if mapped_value
  end
  nil
end