mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 01:34:12 +02:00
change default value
This commit is contained in:
@@ -8,7 +8,7 @@ function _sort(lt, i) =
|
|||||||
)
|
)
|
||||||
concat(_sort(before, i), [pivot], _sort(after, i));
|
concat(_sort(before, i), [pivot], _sort(after, i));
|
||||||
|
|
||||||
function sort(lt, by, idx = -1) =
|
function sort(lt, by = "idx", idx = 0) =
|
||||||
let(
|
let(
|
||||||
dict = [["x", 0], ["y", 1], ["z", 0], ["idx", idx]],
|
dict = [["x", 0], ["y", 1], ["z", 0], ["idx", idx]],
|
||||||
i = dict[search(by, dict)[0]][1]
|
i = dict[search(by, dict)[0]][1]
|
||||||
|
Reference in New Issue
Block a user