mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-17 06:08:32 +01:00
Merge pull request #1326 from BelfrySCAD/revarbat_dev
Docs fixes for comparisons.scad
This commit is contained in:
commit
4ffcd34c82
@ -897,10 +897,10 @@ function group_sort(list, idx) =
|
|||||||
// Description:
|
// Description:
|
||||||
// Given a list of integer group numbers, and an equal-length list of values,
|
// 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.
|
// 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
|
// 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.
|
// 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
|
// 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:
|
// Arguments:
|
||||||
// groups = A list of integer group index numbers.
|
// groups = A list of integer group index numbers.
|
||||||
// values = A list of values to sort into groups.
|
// values = A list of values to sort into groups.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user