DEV Community

Discussion on: Can you spot the problem in the implementation of nthElement?

Collapse
 
leojpod profile image
leojpod

although come to think of it you're already doing "tail-recurssion"

Collapse
 
dwayne profile image
Dwayne Crooks

yeah, I'm already doing that

Thread Thread
 
leojpod profile image
leojpod

I still prefer the case of on a tuple than a case of with some if then else branching inside but that's personal taste :)