| Author |
Comment/Response |
Leon
|
06/28/12 04:52am
Hello. I have a little problem and I hope you can help me.
First, I have a multi-dimensional array (let's call it "array1") and I don't know a priori how many dimensions it has.
Second, I have an address of some element of array1 and it looks like:
address1={2,2,1,5,3,1};
I know that I can extract this element using such code:
(array1[[##]] & @@@ {address1})[[1]]
It will work just like "array1[[2,2,1,5,3,1]]". But the next line is not going to work:
(array1[[##]] & @@@ {address1})[[1]] = 15;
That is my question. How to change the value of an element of array1 which can be found using address1?
Sorry if my English is not completely correct.
URL: , |
|