Skip to content

foreach

(foreach symbol list expression...)

Gives the symbol each element of the list and evaluates the expressions. Returns the value of the last one; the symbol gets its value back at the end.

(foreach c '("A" "B") (princ c))   ; prints AB

Download LinceCAD Manual contents