]> gitweb.factorcode.org Git - factor.git/blob - extra/math/binpack/binpack-docs.factor
Switch to https urls
[factor.git] / extra / math / binpack / binpack-docs.factor
1 ! Copyright (C) 2008 John Benediktsson
2 ! See https://factorcode.org/license.txt for BSD license
3
4 USING: help.markup help.syntax sequences ;
5
6 IN: math.binpack
7
8 HELP: binpack
9 { $values { "items" sequence } { "#bins" "number of bins" } { "bins" "packed bins" } }
10 { $description "Packs a sequence of numbers into the specified number of bins." } ;
11
12 HELP: map-binpack
13 { $values { "items" sequence } { "quot" { $quotation ( item -- weight ) } } { "#bins" "number of bins" } { "bins" "packed bins" } }
14 { $description "Packs a sequence of items into the specified number of bins, using the quotation to determine the weight." } ;