Talk:OpenSCAD Tutorial/Chapter 9

In the section on list generation:

"Time for some quick list generation practice before you move on. Use the newly introduced syntax (variable = [ for (i=[start:step:end]) … ]; ) to generate the following lists: i) [1, 2, 3, 4, 5, 6] ii) [10, 8, 6, 4, 2, 0, -2] iii) 3, 30], [4, 40], [5, 50], [6, 60"

The solution to the fist list is described as:

"x = [ for (i=[1:5]) i];"

which generates [1,2,3,4,5], but should be:

x = [ for (i=[1:6]) i];

to generate the list [1,2,3,4,5,6]

Gsharpe155 (discuss • contribs) 16:59, 2 May 2020 (UTC)