how do you rename lists?
how do you add a list with a variable name(such as ["m.name"]) to another list, or edit that list, other than the original line of code its created with
Sep 6 2014, 8:39 am
|
|
hmmm are lists not as flexible as I thought?
is it possible for me to name a list [m.name] so that when the list is created the list's name would be whatever m's name is? maybe not, beucase im not sure how you would refer to that list later on in the code |
You can't rename variables. You can't create variables at runtime. This has nothing to do with lists in particular.
If you want something similar, you can use an associative list. mob Of course there are plenty of reasons not to use lists instead of variables, but it's been discussed recently already. |