1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-21 14:04:53 +02:00

modify stop condition

This commit is contained in:
Justin Lin
2020-02-28 17:53:49 +08:00
parent a7d65e55bd
commit be8a88608b

View File

@@ -1,2 +1,2 @@
function _sum_impl(lt, leng, i = 0) = function _sum_impl(lt, leng, i = 0) =
i == leng - 1 ? lt[i] : (lt[i] + _sum_impl(lt, leng, i + 1)); i >= leng - 1 ? lt[i] : (lt[i] + _sum_impl(lt, leng, i + 1));