Created
September 18, 2017 10:04
-
-
Save LewisYoul/74f371277325fdcd8cd194c2498b96fb to your computer and use it in GitHub Desktop.
8 Kyu Answer
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
def invert(list) | |
list.map { |n| n *= -1 } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment