# Short-Circuit Evaluation
# Using Short-Circuit Evaluation can clean up your code a great deal.
# Update the following method to use short circuit evaluation. While you're at it, why not try reducing the entire method to one line?
def search_index(games, search_term)
  search_index = games.find_index(search_term)

  if search_index
    search_index
  else
    "Not Found"
  end
end

games = ["Super Mario Bros.", "Contra", "Metroid", "Mega Man 2"]
puts search_index(games, "Contra")

Add new problem to be solved using short circuit evaluations
Add new problem to be solved using short circuit evaluations
