Handbook
Glossary
binpack ( items #bins -- bins )
Vocabulary
math
.
binpack
Inputs
items
a
sequence
#bins
number of bins
Outputs
bins
packed bins
Word description
Packs a sequence of numbers into the specified number of bins.
Definition
USING:
assocs
kernel
math.binpack.private
;
IN:
math.binpack
:
binpack
( items #bins -- bins )
[
dup
zip
]
dip
(binpack)
;