Handbook
Glossary
tree-node? ( object -- ? )
Vocabulary
benchmark
.
binary-trees
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
tree-node
class.
Definition
USING:
classes.tuple.private
kernel
slots.private
;
IN:
benchmark.binary-trees
:
tree-node?
( object -- ? )
dup
tuple?
[
layout-of
7
slot
\
tree-node
eq?
]
[
drop
f
]
if
;