| Author |
Comment/Response |
John F. Davis
|
02/23/07 12:29pm
This works:
A = {1, 2, 3, 4, 5, 6};
Goo [A_] :=
Module[{},
Print["A[3]= ", A[[5]]];
];
Goo[A]
"It prints A[3]= 5"
This does not work:
Moo [A_] :=
Module[{},
A[[5]] = 99;
Print["A[3]= ", A[[5]]];
];
Moo[A]
When I try to set the variable it fails.
URL: , |
|