1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-01 10:42:57 +02:00

update to 3.0

This commit is contained in:
Justin Lin
2021-02-11 11:50:32 +08:00
parent f6ea7fa328
commit f1382cb7f4
5 changed files with 12 additions and 7 deletions

View File

@@ -6,7 +6,8 @@ Make a list that aggregates elements from each of the lists. Returns a list of l
## Parameters
- `lts` : a list of lists.
- `lts` : A list of lists.
- `head` : Rather than listing the elements, the elements are combined using the function. **Since:** 3.0
## Examples
@@ -16,4 +17,7 @@ Make a list that aggregates elements from each of the lists. Returns a list of l
ys = [5, 15, 25];
zs = [2.5, 7.5, 12.4];
assert(zip([xs, ys, zs]) == [[10, 5, 2.5], [20, 15, 7.5], [30, 25, 12.4]]);
assert(zip([xs, ys, zs]) == [[10, 5, 2.5], [20, 15, 7.5], [30, 25, 12.4]]);
sum_up = function(elems) sum(elems);
assert(zip([xs, ys, zs], sum_up) == [17.5, 42.5, 67.4]);