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