mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 22:28:16 +01:00
refactor
This commit is contained in:
parent
37b4855793
commit
8a528e2e2b
@ -1,8 +1,8 @@
|
||||
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);
|
||||
|
||||
|
||||
function lessThan(elem1, elem2) = !greaterThan(elem1, elem2) && elem1 != elem2;
|
Loading…
x
Reference in New Issue
Block a user