-
Notifications
You must be signed in to change notification settings - Fork 0
Booleans
(and expression expression expression ...) -> boolean
Evaluates to #true if all the expressions are #true. If any expression is #false, the and expression evaluates to #false (and the expressions to the right of that expression are not evaluated.) If any of the expressions evaluate to a value other than #true or #false, and reports an error.
(boolean=? [boolean] [boolean]) -> boolean
Negates a boolean value.
(boolean=? #true #false)
#false
(boolean? [any]) -> boolean
Determines whether some value is a boolean.
(boolean? 42)
#false
(false? [any]) -> boolean
Determines whether some value is a boolean.
(false? #true)
#false
(not [boolean]) -> boolean
Negates a boolean value.
(not #false)
#true
(or expression expression expression ...) -> boolean
Evaluates to #true as soon as one of the expressions is #true (and the expressions to the right of that expression are not evaluated.) If all of the expressions are #false, the or expression evaluates to #false. If any of the expressions evaluate to a value other than #true or #false, or reports an error.
(boolean->string [boolean]) -> string
Produces a string for the given boolean.
(boolean->string #true)
"true"