OrderlessPatternSequence
OrderlessPatternSequence[p1,p2,…]
is a pattern object that represents a sequence of arguments matching p1,p2,… in any order.
Details
- OrderlessPatternSequence[] represents a sequence of zero length.
- OrderlessPatternSequence can appear anywhere inside a pattern but cannot be the only element of a pattern.
Examples
open allclose allBasic Examples (3)
Scope (2)
Use OrderlessPatternSequence to make some of the function arguments orderless:
Properties & Relations (1)
During expression pattern matching, PatternSequence matches expressions in fixed order:
OrderlessPatternSequence matches expressions in arbitrary order:
Possible Issues (1)
OrderlessPatternSequence matches against a sequence of patterns:
Text
Wolfram Research (2015), OrderlessPatternSequence, Wolfram Language function, https://reference.wolfram.com/language/ref/OrderlessPatternSequence.html.
CMS
Wolfram Language. 2015. "OrderlessPatternSequence." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/OrderlessPatternSequence.html.
APA
Wolfram Language. (2015). OrderlessPatternSequence. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/OrderlessPatternSequence.html