1 ! Copyright (C) 2008 John Benediktsson
2 ! See https://factorcode.org/license.txt for BSD license
4 USING: help.markup help.syntax sequences ;
9 { $values { "items" sequence } { "#bins" "number of bins" } { "bins" "packed bins" } }
10 { $description "Packs a sequence of numbers into the specified number of bins." } ;
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." } ;