I'm stuck on what I think should be a relatively simple concept. I donβt understand how Dynamic [] works with incremental list manipulation. Consider the following statements:
In[459]:= x={{1,2}}; In[462]:= y=First[x] Out[462]= {1,2} In[463]:= z=First[y] Out[463]= 1
Simple? Now I want z to be dynamically updated when x changes. Here is my attempt:
In[458]:= a={{1,2}}; In[452]:= b=Dynamic[First[a]] Out[452]= {1,2} In[449]:= c=Dynamic[First[b]] Out[449]= {1,2}
As I change the values ββin the list a, I see a corresponding change in b and c; however, I would expect each statement to be a Part first element. Manipulations in dynamic lists are not accepted.
My question is: why do we see this behavior and how can I apply sequential manipulations with a dynamic list?
Thanks in advance.
source share