Created
September 14, 2013 07:29
-
-
Save lesguillemets/6559625 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
# 1 | |
for element in a | |
do_something_with(element) | |
end | |
# 2 | |
a.each do |element| | |
do_something_with(element) | |
end | |
# 3 | |
a.each {|element| do_something_with(element)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment