Created
May 24, 2014 05:48
-
-
Save shinokada/04da14c585ae8b1ff093 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = [[1, 2, 'apple'], [2, 6, 'banana'], [3, 10, 'egg']] | |
for no, num, item in a | |
p "Shopping list #{no}: #{num} #{item}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment