Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Variables' topicStudent Support Forum > General > "Variables"

Help | Reply To Topic
Author Comment/Response
rgi
09/17/04 1:55pm

I want to have a list setup to contain variables such that modifying an element in the list will modify the variable itself.

e.g.

In: list = {v1, v2}
Out: {v1, v2}

In: v1 = "This"
Out: This

In: list
Out: {"This", v2}

In: list[[1]] = "That";

In: list
Out: {"That", v2}

In: v1
Out: "That"


URL: ,
Help | Reply To Topic