Next: built-in booleans true, Up: built-in booleans [Contents][Index]
<boolean>
<top>
Type of the boolean values #t
and #f
.
<boolean>
: <boolean> type-constructor objReturn #t
if obj is true; otherwise return #f
.
(new <boolean> #f) ⇒ #f (new <boolean> #t) ⇒ #t (new <boolean> 12) ⇒ #t
<boolean>
: <boolean> type-predicate objThe type predicate is boolean?
. Return #t
if obj is
#t
or #f
; otherwise return #f
.
(is-a? #t <boolean>) ⇒ #t (is-a? #f <boolean>) ⇒ #t (is-a? 12 <boolean>) ⇒ #f
<boolean>
: <non-negative-fixnum> hash-function boolThe hash function is boolean-hash
.
(hash #f) ⇒ 0 (hash #t) ⇒ 1