1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-18 06:38:14 +01:00
This commit is contained in:
Justin Lin 2022-03-11 22:18:26 +08:00
parent 37b4855793
commit 8a528e2e2b

View File

@ -1,7 +1,7 @@
function _greaterThan(elem1, elem2, i) =
i == -1 ? false :
elem1[i] > elem2[i] ? true :
elem1[i] != elem2[i] ? false : _greaterThan(elem1, elem2, i - 1);
i >= 0 && (
elem1[i] > elem2[i] || (elem1[i] == elem2[i] && _greaterThan(elem1, elem2, i - 1))
);
function greaterThan(elem1, elem2) = _greaterThan(elem1, elem2, len(elem1) - 1);