mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-18 22:58:04 +01:00
by supports a function literal
This commit is contained in:
parent
635b946ede
commit
3ce7468acc
@ -35,4 +35,4 @@ function _sort_by_cmp(lt, cmp) =
|
||||
before = [for(j = 1; j < leng; j = j + 1) if(cmp(lt[j], pivot) < 0) lt[j]],
|
||||
after = [for(j = 1; j < leng; j = j + 1) if(cmp(lt[j], pivot) >= 0) lt[j]]
|
||||
)
|
||||
concat(_sort_by_cmp(before, cmp), [pivot], _sort_by_cmp(after, cmp));
|
||||
concat(_sort_by_cmp(before, cmp), [pivot], _sort_by_cmp(after, cmp));
|
||||
|
Loading…
x
Reference in New Issue
Block a user