Question: How do I refer to the list´s name instead of the list iself?

E.g. I have three lists:

L1:=[1,2,3];

K1:=[4,5,6,7,8];

K2:=[7,8,9,10,11];

and if needed I have a fourth list

ALL:=[L1,K1,K2];

 

Now I´d like to add 99 to all lists whose name contains a 1 and add a 999 to all lists whose name contains a K.

The problem is, when I refer to the elements of ALL, Maple "thinks" I refer to the list. But how do I tell Maple,

that I want to refer to the lists´ name instead of the list itself (e.g. by using the if operator)?

Please Wait...