Condition 
例題
すべて開く すべて閉じるスコープ (2)
特性と関係 (2)
Conditionはブール式をパターンの名前付きの部分について評価する:
PatternTestはテスト関数をパターンに適用する.パターンには名前がなくてもよい:
考えられる問題 (1)
Repeated[p /; test]は,p の中の名前付きのパターンすべてが,列を通して同じ値であることを要求する:
RepeatedNullについても同じことが言える:
名前がないパターンの組合せでPatternTestを使うことで同一ではない要素の列が使えるようにする:
テクニカルノート
-
▪
- パターン適用範囲の制限 ▪
- 条件子 ▪
- 文字列パターン
関連するガイド
-
▪
- パターン ▪
- 言語の概要 ▪
- 条件文 ▪
- ロバスト性とエラー処理 ▪
- Wolfram言語のシンタックス ▪
- 規則とパターン
関連するワークフロー
- 結果を未評価で返す関数を書く
履歴
1988 で導入 (1.0)
テキスト
Wolfram Research (1988), Condition, Wolfram言語関数, https://reference.wolfram.com/language/ref/Condition.html.
CMS
Wolfram Language. 1988. "Condition." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Condition.html.
APA
Wolfram Language. (1988). Condition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Condition.html
BibTeX
@misc{reference.wolfram_2025_condition, author="Wolfram Research", title="{Condition}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Condition.html}", note=[Accessed: 22-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_condition, organization={Wolfram Research}, title={Condition}, year={1988}, url={https://reference.wolfram.com/language/ref/Condition.html}, note=[Accessed: 22-April-2026]}