3 ms·
Given that lisps tend to use prefix notation, the example doesn't even translate meaningfully.
by baddox 12y ago
Given that lisps tend to use prefix notation, the example doesn't even translate meaningfully.
- dllthomas 12y agoI assume the above was intended to be a Python expression. The answer, to the best of my knowledge, is "not really". There is no built in or reasonably standard function that lets you check simultaneously that a is less than b which in turn is greater than or equal to c. Not that we couldn't define one ad-hoc, although making it reusable in a way that's reasonably idiomatic might be a challenge... Obviously, you can express it slightly more verbosely: (and (< a b) (>= b c))