mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-15 11:14:17 +02:00
use c-style for loop
This commit is contained in:
@@ -1,6 +1 @@
|
|||||||
function __reverse(vt) =
|
function __reverse(vt) = [for(i = len(vt) - 1; i >= 0; i = i - 1) vt[i]];
|
||||||
let(to = len(vt) - 1)
|
|
||||||
[
|
|
||||||
for(i = [0:to])
|
|
||||||
vt[to - i]
|
|
||||||
];
|
|
Reference in New Issue
Block a user