I don not understand why come here to practice and answer just by using built-in methods.
What's the difference with .detect?
.detect
Unpublishing as a duplicate of https://www.codewars.com/kata/complete-fibonacci-series
That one's Haskell version asks for fib(1000). JS version only asks for fib(40), but that's still enough to prevent the truly naive implementation.
fib(1000)
fib(40)
i made a mistake what i did was list.map(regexp)
Fixed.
Added.
This comment is hidden because it contains spoiler information about the solution
Not an issue.
This is a direct duplicate, see below.
There are direct Fibs kata, see below.
For some reason, doing this did not work when I attempted it... and only worked once I removed the ampersand.
I'm still not certain how closures work in Ruby... hell, I'm not even certain that is the concept I should be looking up.
How is using reduce writing your own reduce ?
Not an issue
Suggestion
Loading collection data...
I don not understand why come here to practice and answer just by using built-in methods.
What's the difference with
.detect
?Unpublishing as a duplicate of https://www.codewars.com/kata/complete-fibonacci-series
That one's Haskell version asks for
fib(1000)
. JS version only asks forfib(40)
, but that's still enough to prevent the truly naive implementation.i made a mistake what i did was list.map(regexp)
Fixed.
Added.
This comment is hidden because it contains spoiler information about the solution
Not an issue.
This is a direct duplicate, see below.
There are direct Fibs kata, see below.
For some reason, doing this did not work when I attempted it... and only worked once I removed the ampersand.
I'm still not certain how closures work in Ruby... hell, I'm not even certain that is the concept I should be looking up.
How is using reduce writing your own reduce ?
Not an issue
Suggestion
Loading more items...