Created
January 14, 2013 01:37
-
-
Save jeffreyiacono/4527210 to your computer and use it in GitHub Desktop.
fun with #to_proc
This file contains hidden or 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
:**.to_proc.call(2,5) | |
# => 32, which is 2^5 | |
:+.to_proc.call(2,5) | |
# => 7, which is 2 + 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment