Created
February 14, 2018 14:32
-
-
Save zleap/d35df7f48c24e4fdf50cbf4dd35a0495 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
def double(num) | |
yield(num) | |
end | |
double(16) {|x| puts x * 2} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment