Sequence
Sequence[expr1,expr2,…]
represents a sequence of arguments to be spliced automatically into any function.
Details
- Sequence objects will automatically be flattened out in all functions except those with attribute SequenceHold or HoldAllComplete.
- Assignment and replacement functions have attribute SequenceHold.
Examples
open allclose allBasic Examples (1)
Sequence is automatically spliced in:
Applications (2)
Properties & Relations (5)
A sequence of arguments matched by __ is treated as a Sequence object:
## represents sequences of arguments by Sequence objects:
A sequence with one argument acts like Identity:
Functions that are HoldAllComplete do not automatically splice in Sequence objects:
Functions that have attribute HoldAll but not SequenceHold do automatically splice:
An empty Sequence[] will evaporate inside any head except those with special attributes:
Nothing will only disappear inside lists:
Possible Issues (2)
Most Wolfram Language functions automatically splice in Sequence objects:
Assignment and replacement functions have the attribute SequenceHold:
Text
Wolfram Research (1996), Sequence, Wolfram Language function, https://reference.wolfram.com/language/ref/Sequence.html.
CMS
Wolfram Language. 1996. "Sequence." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Sequence.html.
APA
Wolfram Language. (1996). Sequence. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Sequence.html