]> gitweb.factorcode.org Git - factor.git/blob - extra/math/binpack/binpack-docs.factor
Merge branch 'master' into experimental
[factor.git] / extra / math / binpack / binpack-docs.factor
1 ! Copyright (C) 2008 John Benediktsson
2 ! See http://factorcode.org/license.txt for BSD license
3
4 USING: help.syntax help.markup kernel assocs sequences quotations ;
5
6 IN: math.binpack 
7
8 HELP: binpack
9 { $values { "assoc" assoc } { "n" "number of bins" } { "bins" "packed bins" } }
10 { $description "Packs the (key, value) pairs into the specified number of bins, using the value as a weight." } ;
11
12 HELP: binpack*
13 { $values { "items" sequence } { "n" "number of bins" } { "bins" "packed bins" } } 
14 { $description "Packs a sequence of numbers into the specified number of bins." } ;
15
16 HELP: binpack!
17 { $values { "items" sequence } { "quot" quotation } { "n" "number of bins" } { "bins" "packed bins" } } 
18 { $description "Packs a sequence of items into the specified number of bins, using the quotation to determine the weight." } ;
19