My solution is also getting this error, I had no problems completing sample tests.
Since Primes.first() returns an Array, I think that'd be pretty tricky.
Yeah, I wrote this kata for Ruby, in which last is a built in method of the Array class: https://ruby-doc.org/core-2.2.0/Array.html#method-i-last
last
Other versions of the kata weren't written by me, and I guess the translators didn't bother to modify the description with language specific instructions.
Loading collection data...
My solution is also getting this error, I had no problems completing sample tests.
Since Primes.first() returns an Array, I think that'd be pretty tricky.
Yeah, I wrote this kata for Ruby, in which
last
is a built in method of the Array class: https://ruby-doc.org/core-2.2.0/Array.html#method-i-lastOther versions of the kata weren't written by me, and I guess the translators didn't bother to modify the description with language specific instructions.