represents a sequence of arguments to be spliced automatically into any function.
- Sequence objects will automatically be flattened out in all functions except those with attribute SequenceHold or HoldAllComplete.
- Assignment and replacement functions have attribute SequenceHold.
Examplesopen allclose all
Basic Examples (1)
Sequence is automatically spliced in:
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:
Wolfram Research (1996), Sequence, Wolfram Language function, https://reference.wolfram.com/language/ref/Sequence.html.
Wolfram Language. 1996. "Sequence." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Sequence.html.
Wolfram Language. (1996). Sequence. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Sequence.html