Sequences
The function
Flatten allows you to explicitly flatten out all sublists.
| Out[1]= |  |
FlattenAt lets you specify at what positions you want sublists flattened.
| Out[2]= |  |
Sequence objects automatically get spliced in, and do not require any explicit flattening.
| Out[3]= |  |
| Sequence[e1,e2,...] | a sequence of arguments that will automatically be spliced into any function |
Representing sequences of arguments in functions.
| Out[4]= |  |
This includes functions with special input forms.
| Out[5]= |  |
Here is a common way that
Sequence is used.
| Out[6]= |  |