1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 10:14:41 +02:00

use c-style for loop

This commit is contained in:
Justin Lin
2019-06-12 08:32:52 +08:00
parent 9a2e66f999
commit 2e1def3556

View File

@@ -1,6 +1 @@
function __reverse(vt) =
let(to = len(vt) - 1)
[
for(i = [0:to])
vt[to - i]
];
function __reverse(vt) = [for(i = len(vt) - 1; i >= 0; i = i - 1) vt[i]];