Is this kata a shameless advertisment?
Thanks, that was fun!
Duplicate Issue. Closing.
Issue
Duplicate issue anyway. Closing.
Added.
This comment is hidden because it contains spoiler information about the solution
@bozh, I agree 👍 str.each_char seems like a better option.
str.each_char
str.chars is a shorthand for str.each_char.to_a (ref: http://ruby-doc.org/core-2.5.0/String.html#method-i-chars)
str.chars
str.each_char.to_a
So, use str.chars before .map is inefficient.
.map
Me too... Spoilers.... :)
language?
Needs random tests
Done.
On it.
JavaScript by convention uses camelCase, not snake_case. The JavaScript translation does not.
Please follow convention.
Added a Javascript translation!
Loading collection data...
Is this kata a shameless advertisment?
Thanks, that was fun!
Duplicate
Issue
. Closing.Duplicate issue anyway. Closing.
Added.
This comment is hidden because it contains spoiler information about the solution
@bozh, I agree 👍
str.each_char
seems like a better option.So, use
str.chars
before.map
is inefficient.Me too... Spoilers.... :)
language?
Needs random tests
Done.
On it.
JavaScript by convention uses camelCase, not snake_case. The JavaScript translation does not.
Please follow convention.
Added a Javascript translation!
Loading more items...