AllSameBy
14.1の新機能
例題
すべて開くすべて閉じるスコープ (1)標準的な使用例のスコープの概要
アプリケーション (1)この関数で解くことのできる問題の例
特性と関係 (1)この関数の特性および他の関数との関係
AllSameByは,f をすべての要素に適用してその結果がすべて等しいかどうかをチェックすることで実装される:
In[1]:=1

✖
https://wolfram.com/xid/0pu05h5knh-g9nj4h
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0pu05h5knh-kp9kbc
Out[2]=2

f[en]にバリエーションが見付かると,AllSameByは評価を中止する:
In[3]:=3

✖
https://wolfram.com/xid/0pu05h5knh-nictxo






Out[3]=3

これに対し,MapはSameQのチェックの前にすべての要素を評価する:
In[4]:=4

✖
https://wolfram.com/xid/0pu05h5knh-le3p2w










Out[4]=4

Wolfram Research (2024), AllSameBy, Wolfram言語関数, https://reference.wolfram.com/language/ref/AllSameBy.html.
✖
Wolfram Research (2024), AllSameBy, Wolfram言語関数, https://reference.wolfram.com/language/ref/AllSameBy.html.
テキスト
Wolfram Research (2024), AllSameBy, Wolfram言語関数, https://reference.wolfram.com/language/ref/AllSameBy.html.
✖
Wolfram Research (2024), AllSameBy, Wolfram言語関数, https://reference.wolfram.com/language/ref/AllSameBy.html.
CMS
Wolfram Language. 2024. "AllSameBy." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AllSameBy.html.
✖
Wolfram Language. 2024. "AllSameBy." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AllSameBy.html.
APA
Wolfram Language. (2024). AllSameBy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AllSameBy.html
✖
Wolfram Language. (2024). AllSameBy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AllSameBy.html
BibTeX
✖
@misc{reference.wolfram_2025_allsameby, author="Wolfram Research", title="{AllSameBy}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/AllSameBy.html}", note=[Accessed: 04-April-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_allsameby, organization={Wolfram Research}, title={AllSameBy}, year={2024}, url={https://reference.wolfram.com/language/ref/AllSameBy.html}, note=[Accessed: 04-April-2025
]}