Question: convert~ in nested lists

Is it correct that element wise operators just work on the first element, and not in nested elements?

Do I need to manually go through the nested lists, or are there any other tricks to simplify this operation?

fasteners := [Vector(2, {(1) = -25.0*Units:-Unit(mm), (2) = 0.}), Vector(2, {(1) = 25.0*Units:-Unit(mm), (2) = 0.})]

[Vector[column](%id = 36893490765018711092), Vector[column](%id = 36893490765018711212)]

(1)

`~`[convert](fasteners, unit_free)

[Vector[column](%id = 36893490764941411500), Vector[column](%id = 36893490764941411620)]

(2)

x := Vector(2, {(1) = -25.0*Units:-Unit(mm), (2) = 0.})

Vector[column](%id = 36893490765009212828)

(3)

`~`[convert](x, unit_free)

Vector[column](%id = 36893490764944766844)

(4)

NULL

Download elementwise.mw

Please Wait...