core.logic
Exports logic, bitwise, and boolean functions.
and
Description
Returns a true value only if all expressions are also true. This function will short-circuit as soon as a falsey expression is encountered, and will not evaluate any of the subsequent expressions. This includes any potential side effects of those expressions.
Usage
<expression 1> [... <expression N>]
Examples
(and (> 20 1) (> 40 20))
or
Description
Returns a true value if at least one expression is true. This function will short-circuit as soon as a truthy expression is encountered, and will not evaluate any of the subsequent expressions. This includes any potential side effects of those expressions.
Usage
<expression 1> [... <expression N>]
Examples
(or (> 20 1) (> 1 20))
not
Description
Returns the logical negation of the value provided.
Usage
<expression>
Examples
(not (> 1 20))