Hi all, I'm just beginning to learn about patterns and rules. How would I have to write the following rule, so that the enclosing list does not get processed by it? (Meaning: How do I get rid of the first "x"?)
{1, 2, 3, a, b, c} /. {i_Integer -> i*2, s_Symbol -> x}
x[2, 4, 6, x, x, x]
Thank you very much!