Skip to content

Instantly share code, notes, and snippets.

@craigmartin
Created August 2, 2011 19:14
Show Gist options
  • Save craigmartin/1120950 to your computer and use it in GitHub Desktop.
Save craigmartin/1120950 to your computer and use it in GitHub Desktop.
Given the alphabet, print out letter 1 is a, letter 2 is b ..
short_enum = (1..26).to_enum
long_enum = ('a'..'z').to_enum
loop do
puts "letter #{short_enum.next} is #{long_enum.next}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment