This is OK
foo=1; bar=2;
Clear[foo,bar]
But this is not
foo=1; bar=2;
Clear@@{foo,bar}
Clear::ssym: 1 is not a symbol.
Clear::ssym: 2 is not a symbol.
So how do you Clear a list of symbols?
I understand that clearing a list of strings that name those symbols, as in This answer is possible. But that's not what I'm asking.
SetAttributes[clear, HoldAll]; clear[{a__}] := Clear[a]. – Carl Woll Jan 23 '18 at 22:50