Handbook
Glossary
>boolean ( obj -- ? )
Factor handbook
»
The language
»
Booleans
Prev:
boolean
Next:
not ( obj -- ? )
Vocabulary
kernel
Inputs
obj
a generalized boolean
Outputs
?
a
boolean
Word description
Convert a generalized boolean into a boolean. That is,
f
retains its value, whereas anything else becomes
t
.
Definition
IN:
kernel
:
>boolean
( obj -- ? )
[
t
]
[
f
]
if
;
inline