Yeah gotta store the return value in a variable!
Comment on I wish
mryessir@lemmy.sdf.org 11 months agoEach clause already returns
Valmond@lemmy.mindoki.com 11 months ago
Comment on I wish
mryessir@lemmy.sdf.org 11 months agoEach clause already returns
Yeah gotta store the return value in a variable!
mellejwz@lemmy.world 11 months ago
My bad, I looked over the returns. If you return something there wouldn’t be much difference between both.
Cosmicomical@lemmy.world 11 months ago
Ok just to clarify this was a joke. It was just a pedantic improvement on a deranged solution. The only sensible way to do this is with % 2 or with bitwise operations imo.