Handbook
Glossary
score? ( 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
score
class.
Definition
USING:
classes.tuple.private
kernel
slots.private
;
IN:
rosetta-code.bulls-and-cows
:
score?
( object -- ? )
dup
tuple?
[
layout-of
7
slot
\
score
eq?
]
[
drop
f
]
if
;