Hi, good morning everybody. The number of variables to manipulate is a variable itself, I need to generate the second argument of Manipulate with a Table. How can it be done? Something like:
A variable number of manipulates… I guess the answer depends on how you have structured your code. Do you want the number of manipulates to depends dynamically on some kind of value?
Evaluate is needed to ensure that the arguments will evaluate. Manipulate holds its arguments.
Sequence is needed to turn the list from Table into a sequence of statements.
Thank you Sean, it is exactly the answer I was looking for. Actually I didn’t know about the apply ‘@@’ function, I was unsuccessful because I used Sequence followed by [ ]. Where the apply function is coming to be helpful, beside this case? The power of this language is really impressive.
Sequence very often has to be used with Apply. Both of these functions are pretty strange and probably best avoided.
If you program the Wolfram Language like it’s a functional programming language, you will never use these two functions and your code becomes much easier to read and test.