1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00
This commit is contained in:
Justin Lin
2022-03-12 16:22:38 +08:00
parent 95edbbee76
commit ccb16cc4f7

View File

@@ -12,4 +12,4 @@ function sum(lt) =
let(end = len(lt) - 1)
end == 0 ? lt[0] :
let(cum_total = [for(i = 0, s = lt[0]; i < end; i = i + 1, s = s + lt[i]) s])
cum_total[len(cum_total) - 1] + lt[end];
cum_total[end - 1] + lt[end];