5 comments
return !(x < y);
5 0 ReplyAssuming x and y are totally ordered 🤮
3 0 Replyreturn (x >= y);
also works3 1 Reply
Something something sufficiently advanced compiler should optimize it away
4 0 Reply
return !(x < y);
Assuming x and y are totally ordered 🤮
return (x >= y);
also works
Something something sufficiently advanced compiler should optimize it away