Created
June 13, 2019 18:34
-
-
Save Alacrity01/688f25024815dd3f6630bbb40e88c561 to your computer and use it in GitHub Desktop.
Week 8, Day 4
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
tasks.each(&:snooze_hour!) | |
^ same as ^ | |
tasks.each do |task| | |
task.snooze_hour! | |
end | |
words = ['ace', 'butter', 'cats'] | |
loud_words = word.map(&:upcase) -> loud_words is a new array of ['ACE', 'BUTTER', 'CATS'] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment