Handbook
Glossary
trit? ( object -- ? )
Vocabulary
rosetta-code.ternary-logic
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
trit
class.
Definition
USING:
kernel
kernel.private
;
IN:
rosetta-code.ternary-logic
:
trit?
( object -- ? )
dup
tag
1
eq?
[
drop
t
]
[
dup
m?
[
drop
t
]
[
t?
]
if
]
if
;