AnyOrder

AnyOrder[p1,p2,]

is a grammar rules pattern object that represents a sequence of elements matching p1, p2, in any order.

Details

Examples

open allclose all

Basic Examples  (2)

Extract elements of a string, which may appear in any order:

In[1]:=
Click for copyable input
Out[1]=

Deploy a grammar that allows phrases to appear in any order:

In[1]:=
Click for copyable input
Out[1]=

Apply the grammar:

In[2]:=
Click for copyable input
Out[2]=

Applications  (1)

Properties & Relations  (1)

See Also

FixedOrder  Alternatives  GrammarRules  GrammarApply  OrderlessPatternSequence  Orderless

Introduced in 2015
(10.1)