Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Maybe change the function nameto follow best practise, like
equal_sum?
.As the Safe Navigation Operator,
&
deals with the possibility ofnil
when calling the method on the object – maybe consider&.
together here: https://stackoverflow.com/questions/36812647/what-does-ampersand-dot-mean-in-rubywhat does the & do?
awright, thanks!
What the hell is wrong with you? This is literally my previous fork :\
The discourse section on the original kumite creator (@burlacu.valeri) has the creator replying to someone that the expected behaviour for empty strings should be "TRUE". I think i might have misinterpreted that and gave "TRUE" if even one of them is empty. I'll change my code. Thanks for catching that!
Who said that? The original kumite clearly says "verify if the sum of the letters of the name #1 equals the sum of the letters of the name #2".
I hate this code. Please don't look at it. It works but it's terrible and should be forgotten about as fast as possible!
I have never hated anything I've written more than I hate this. I'm so sorry!
The table should be called 'elf'.
This comment is hidden because it contains spoiler information about the solution
it's because of the dashboard ;)
I'm sorry. Didn't know that you could make things a spoiler when responding to a solution, you learn something new every day!
spoiler flag...
This comment is hidden because it contains spoiler information about the solution
Loading more items...