S
Shendelzare Silkwood
I want to add together numbers in an array with the inject command. I
want only the even numbers using only inject.
So, something like [1,2,3,4].inject.....but don't know what to do so
help!
Second, I need to reverse an array using only the inject command. So,
something like above with the result [4,3,2,1]
I'm confused...help!
want only the even numbers using only inject.
So, something like [1,2,3,4].inject.....but don't know what to do so
help!
Second, I need to reverse an array using only the inject command. So,
something like above with the result [4,3,2,1]
I'm confused...help!