Skip to content

Instantly share code, notes, and snippets.

@krokrob
Created October 14, 2019 12:56
Show Gist options
  • Save krokrob/7427eb8f579f0d83ec77c3f075191f6c to your computer and use it in GitHub Desktop.
Save krokrob/7427eb8f579f0d83ec77c3f075191f6c to your computer and use it in GitHub Desktop.
def display_list(horses)
horses.each_with_index do |horse, index|
puts "#{index + 1} - #{horse}"
end
end
# display_list([
# 'Tempete du Desert',
# 'Jolly Jumper',
# 'Hermes',
# 'Hercules',
# 'Tornade'
# ])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment