Hi Rohit,
You used some functions which I have not used yet like Riffle. The Wolfram Program Language is elegant, enabling complex calculations with only implicit loops.
Loops are implemented by applying pure functions to lists, reducing the size of a Wolfram Script by as much as an order of magnitude over using For, While or Do.
I have problems which can be written in Mathematica fairly compactly if objects can be passed to functions by reference.
However, HoldFirst@ and HoldAll@ don't seem to mix well with Dynamic@. I just need to become more familiar with Mathematica's non-intuitive oddities!.
Any Thoughts?
Thanks,
MIlt