Comment on I wish
dwalin@lemmy.world 11 months ago
Just do a recursive funcion subtracting 2 and stoping on -1 or 0. Easy
Comment on I wish
dwalin@lemmy.world 11 months ago
Just do a recursive funcion subtracting 2 and stoping on -1 or 0. Easy
fox_the_apprentice@lemmynsfw.com 11 months ago
dwalinIsEven(-2)
FooBarrington@lemmy.world 10 months ago
Just return
null
, nobody knows whether negative numbers can be evendwalin@lemmy.world 10 months ago
Ok, thanks for the PR. I added a condition if we have an underflow we increment it instead