Created
May 11, 2019 13:13
-
-
Save stevencch99/ba6701ceff7f657144228b571efaf1b9 to your computer and use it in GitHub Desktop.
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
double_then_square = square << double | |
double_then_square[2] # => 16 | |
square_then_double = square >> double | |
square_then_double[2] # => 8 | |
(square >> double)[2] # => 8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment