[OpenSCAD] each - Assertion failed on flat list

Torsten Paul Torsten.Paul at gmx.de
Sat Apr 28 15:11:22 EDT 2018

On 04/28/2018 10:58 AM, Parkinbot wrote:
> I would expect a run time error.
Why? What's the benefit of making it an error?

The proposal for each reads:

 > The each operator is new: it takes a sequence value
 > as argument, and adds each element to the list being
 > constructed. each x is equivalent to for(i=x)i.
So according to that, both lines should be identical:

echo([for(i=3) i]);
echo([each 3]);

The first one currently gives
ECHO: [3]


More information about the Discuss mailing list