Consider the following code:
list1 = {1, 2, 3};m = 17;{list1, m} // Clear
In Mathematica 13.2, this syntax with Clear
works without problems. In Mathematica 13.1, it returns error:
Clear::ssym: {list1, m} is not a symbol or a string.
What is an alternative of the syntax that allows to apply Clear
to all the elements of some list of variables?
I have already tried Clear[##] & @@ {list1, m}
to convert it to the standard form Clear[list1,m]
, but it did not help.