You must log in or register to comment.
- LordTCup ( @LordTCup@lemmy.ca ) English5•1 year ago
return !(x < y);
- Beanie ( @Beanie@programming.dev ) English3•1 year ago
return (x >= y);
also works - qwop ( @qwop@programming.dev ) English3•1 year ago
Assuming x and y are totally ordered 🤮
- JackbyDev ( @JackbyDev@programming.dev ) English3•1 year ago
Something something sufficiently advanced compiler should optimize it away