cookiecad / Openscad-to-JSCAD-converter

2 stars 1 forks source link

Add support for "for" statement #5

Open napter opened 2 months ago

napter commented 2 months ago

We can create an inline-for helper function, which will keep the output similar to the original input. The inline for will create a list, add each iteration of the loop to the list, then return the list. This way the for loop can be used as a parameter in other functions.