mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-01 04:20:27 +02:00
by supports a function literal
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user