Docs fixes for comparisons.scad

This commit is contained in:
Revar Desmera 2023-12-09 18:59:49 -08:00
parent e40dddf058
commit 3b3ad8eaea

View file

@ -897,10 +897,10 @@ function group_sort(list, idx) =
// Description:
// Given a list of integer group numbers, and an equal-length list of values,
// returns a list of groups with the values sorted into the corresponding groups.
// Ie: if you have a groups index list of [2,3,2] and values of ["A","B","C"], then
// the values "A" and "C" will be put in group 2, and "B" will be in group 3.
// Ie: if you have a groups index list of `[2,3,2]` and values of `["A","B","C"]`, then
// the values `"A"` and `"C"` will be put in group 2, and `"B"` will be in group 3.
// Groups that have no values grouped into them will be an empty list. So the
// above would return [[], [], ["A","C"], ["B"]]
// above would return `[[], [], ["A","C"], ["B"]]`
// Arguments:
// groups = A list of integer group index numbers.
// values = A list of values to sort into groups.