Sequence
Usage
• Sequence[ , , ... ] 表示一组自动接合到任意函数的参数.
Notes
• 例如: f[a, Sequence[b, c]]  . • 除具有SequenceHold 或 HoldAllComplete属性的函数外,Sequence对象在所有函数中将自动被压平.
Further Examples
Sequence is often used with Apply (short prefix form: @@) for splicing elements into an enclosing expression.
In[1]:=
|
Out[1]=
|
Define a set of elements to be used as limits of integration.
In[2]:=
|
Out[2]=
|
Since NIntegrate normally holds its elements unevaluated, it is necessary to use Evaluate to force the evaluation.
In[3]:=
|
Out[3]=
|
This clears the definition.
In[4]:=
|
|