primitive? ( object -- ? )
Factor handbook » The language » Words » Primitives

Prev:primitive


Vocabulary
words

Inputs and outputs
objectan object
?a boolean


Word description
Tests if the object is an instance of the primitive class.

Definition


: primitive? ( object -- ? )
dup word? [ "primitive" word-prop ] [ drop f ] if ;