SchemeDT:Boolean
From DocR23
Contents |
Action
A boolean is a native Scheme data type having either the value #t (true) or the value #f (false). It represents a logical, or Boolean, value.
Derivation
boolean:scheme-object
C++
logical
External Rep
#t or #f
Example
; boolean (data type) ; Define and query a boolean Scheme object. (define ON #t) ;; ON (define OFF #f) ;; OFF (boolean? ON) ;; #t (boolean? OFF) ;; #t (boolean? 1) ;; #f