For anyone wondering, this is definitely and absolutely NOT best practice! Its not even a clever solution.
This comment is hidden because it contains spoiler information about the solution
oh nice code
This is true and you have to add an tmpy string in the first test as argument, but gets worse as i got another error with the tests that you cant see...
I thought the 0 was for if the array was empty.
It is really nice solution :) You can omit first parameter, and write "inject(:+)"
whats the " :+ " do? in other words, what does the second paramter take??? never seen nothing like this inject
Loading collection data...
For anyone wondering, this is definitely and absolutely NOT best practice! Its not even a clever solution.
This comment is hidden because it contains spoiler information about the solution
oh nice code
This is true and you have to add an tmpy string in the first test as argument, but gets worse as i got another error with the tests that you cant see...
I thought the 0 was for if the array was empty.
It is really nice solution :)
You can omit first parameter, and write "inject(:+)"
whats the " :+ " do? in other words, what does the second paramter take??? never seen nothing like this inject