Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

AnyOrder

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

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (2)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]=
Introduced in 2015
(10.1)