WOLFRAM

OrderlessPatternSequence
OrderlessPatternSequence

OrderlessPatternSequence[p1,p2,]

任意の順序で p1,p2,にマッチする引数列を表すパターンオブジェクトである.

詳細

例題

すべて開くすべて閉じる

  (3)基本的な使用例

リスト中の要素を任意の順序でマッチする:

Out[1]=1
Out[2]=2

関数の引数を任意の順序でマッチする:

Out[1]=1

マッチされた式の順序は保存される:

Out[1]=1
Out[2]=2

スコープ  (2)標準的な使用例のスコープの概要

OrderlessPatternSequenceを使って関数の引数のいくつかの順序をなくする:

Out[2]=2
Out[3]=3

gの最後の2つの引数のみ順序がなくなる:

Out[4]=4

2つの1と1つの0があるリスト中の位置を求める:

Out[1]=1
Out[2]=2

特性と関係  (1)この関数の特性および他の関数との関係

PatternSequenceは,式のパターンマッチングの最中に,式を固定順にマッチする:

Out[1]=1
Out[2]=2

OrderlessPatternSequenceは式を任意順にマッチする:

Out[3]=3
Out[4]=4

考えられる問題  (1)よく起る問題と予期しない動作

OrderlessPatternSequenceはパターン列についてマッチする:

Out[1]=1
Out[2]=2
Wolfram Research (2015), OrderlessPatternSequence, Wolfram言語関数, https://reference.wolfram.com/language/ref/OrderlessPatternSequence.html.
Wolfram Research (2015), OrderlessPatternSequence, Wolfram言語関数, https://reference.wolfram.com/language/ref/OrderlessPatternSequence.html.

テキスト

Wolfram Research (2015), OrderlessPatternSequence, Wolfram言語関数, https://reference.wolfram.com/language/ref/OrderlessPatternSequence.html.

Wolfram Research (2015), OrderlessPatternSequence, Wolfram言語関数, 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.

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

Wolfram Language. (2015). OrderlessPatternSequence. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/OrderlessPatternSequence.html

BibTeX

@misc{reference.wolfram_2025_orderlesspatternsequence, author="Wolfram Research", title="{OrderlessPatternSequence}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/OrderlessPatternSequence.html}", note=[Accessed: 03-April-2025 ]}

@misc{reference.wolfram_2025_orderlesspatternsequence, author="Wolfram Research", title="{OrderlessPatternSequence}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/OrderlessPatternSequence.html}", note=[Accessed: 03-April-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_orderlesspatternsequence, organization={Wolfram Research}, title={OrderlessPatternSequence}, year={2015}, url={https://reference.wolfram.com/language/ref/OrderlessPatternSequence.html}, note=[Accessed: 03-April-2025 ]}

@online{reference.wolfram_2025_orderlesspatternsequence, organization={Wolfram Research}, title={OrderlessPatternSequence}, year={2015}, url={https://reference.wolfram.com/language/ref/OrderlessPatternSequence.html}, note=[Accessed: 03-April-2025 ]}