As a rule of thumb, never modify your inputs. Most langs have primitives that automatically "clone" but arrays are pretty much always mutable, so you should clone them before doing anything.
clone
Don't modify the input array ;-)
No worries, thank you for your feed (I didn't think people could name a support function like me, but it was indeed pretty likely).
@myjinxin2015, we were editing the file in the same instant, I changed different things, apparentely; sorry for the inconvenience^^'
This comment is hidden because it contains spoiler information about the solution
It should be fixed. Please re-test. Thans for you feedback ;-)
I would assume it was for a naming collision: try now that I refactored, cheers :)
In Ruby?
Loading collection data...
As a rule of thumb, never modify your inputs. Most langs have primitives that automatically "clone" but arrays are pretty much always mutable, so you should
clone
them before doing anything.Don't modify the input array ;-)
No worries, thank you for your feed (I didn't think people could name a support function like me, but it was indeed pretty likely).
@myjinxin2015, we were editing the file in the same instant, I changed different things, apparentely; sorry for the inconvenience^^'
This comment is hidden because it contains spoiler information about the solution
It should be fixed.
Please re-test.
Thans for you feedback ;-)
I would assume it was for a naming collision: try now that I refactored, cheers :)
In Ruby?