I have a notebook with a list of operation where the result of a function is the input of the following.
Example:
a = DoSomething1[OriginalInput];
b = DoSomething2[a];
c = DoSomething3[b];
ShowData[c]
If I want to dynamically update the data I can use the "Dynamic" function like this:
Dynamic[
ShowData[DoSomething3[DoSomething2[DoSomething1[OriginaInput]]]]
]
But this is very inconvenient. Probably I can use Function
a[Input_]:=DoSomething1[Input];
[...]
ShowData[c[b[a[CurrentInput]]]
But again it's quite similar.
Is there a better way to achieve the dynamic evaluation of a series of Function?
Extra: my program Use CurrentImage[] as input and then apply some image transformation based on the position of several elements in the picture
foo[x_]:= c @ b @ a @ x; Dynamic[foo @ input]
? $\endgroup$C, D, K, I, E, O
for example. $\endgroup$foo = Composition[c, b, a]
(equivalently,foo = c@*b@*a
). -- But frankly, I don't see what's inconvenient about your two proposed solutions. $\endgroup$