Created
September 6, 2015 00:31
-
-
Save marvinahv/6acdd98dd194b589abcd 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
### If you get an array of numbers, sum its numbers. | |
def sum_array_numbers(numbers) | |
numbers.inject(:+) | |
end | |
sum_array_numbers([10, 24, 11, 3, 14, 24]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment