Handbook
Glossary
<bounty> ( items -- bounty )
Vocabulary
rosetta-code
.
knapsack-unbounded
Inputs
items
an
object
Outputs
bounty
an
object
Definition
USING:
accessors
combinators
kernel
math.vectors
;
IN:
rosetta-code.knapsack-unbounded
:
<bounty>
( items -- bounty )
[
bounty
new
]
dip
{
[
>>amounts
]
[
values
vdot
>>value
]
[
weights
vdot
>>weight
]
[
volumes
vdot
>>volume
]
}
cleave
;