Created
December 24, 2017 04:04
-
-
Save randrews/8a2912c313e66b3e7fbd7326ce99be3f 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 flipx(arr) | |
arr.map(&:dup).reverse | |
end | |
def flipy(arr) | |
arr.map(&:reverse) | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment