Handbook
Glossary
predicate? ( object -- ? )
Factor handbook
»
The language
»
Objects
»
Classes
»
Class predicate words
Prev:
predicate
Next:
reset-class ( class -- )
Vocabulary
classes
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
predicate
class.
Definition
USING:
kernel
words
;
IN:
classes
:
predicate?
( object -- ? )
dup
word?
[
"predicating"
word-prop
>boolean
]
[
drop
f
]
if
;