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