Woah, never seen this syntax first_letter, *middle, last_letter = word.chars cool!
first_letter, *middle, last_letter = word.chars
Not an issue. Or at least it's a different issue, which I've reported above.
Why are people voting this as 'Clever'? Using the squeeze method is not very obscure language and it looks pretty clear to me.
This comment is hidden because it contains spoiler information about the solution
No, I think the kata is clear about being sequential by 1.
My solution looks like yours. Is yours really faster than @levivoelz?
Hey @clayton.enga, your test case is invalid because on Bob's IQ test he will only be given an array of numbers with ONE different number than the rest in terms of 'evenness'.
Didn't know about the argument for with_index. Great!
with_index
Loading collection data...
Woah, never seen this syntax
first_letter, *middle, last_letter = word.chars
cool!
Not an issue. Or at least it's a different issue, which I've reported above.
Why are people voting this as 'Clever'? Using the squeeze method is not very obscure language and it looks pretty clear to me.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
No, I think the kata is clear about being sequential by 1.
My solution looks like yours. Is yours really faster than @levivoelz?
Hey @clayton.enga, your test case is invalid because on Bob's IQ test he will only be given an array of numbers with ONE different number than the rest in terms of 'evenness'.
Didn't know about the argument for
with_index
. Great!