AllSameBy
例題
すべて開く すべて閉じる例 (2)
特性と関係 (1)
AllSameByは,f をすべての要素に適用してその結果がすべて等しいかどうかをチェックすることで実装される:
list = {-5, 5, 5, 3 + 4I, -3 - 4I, 4, -4 + 3I, 5I, -5, 5};
Apply[SameQ][Map[Abs][list]]AllSameBy[list, Abs]f[en]にバリエーションが見付かると,AllSameByは評価を中止する:
AllSameBy[list, Echo /* Abs]これに対し,MapはSameQのチェックの前にすべての要素を評価する:
list = {-5, 5, 5, 3 + 4I, -3 - 4I, 4, -4 + 3I, 5I, -5, 5};
Apply[SameQ][Map[Echo /* Abs][list]]テキスト
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.
APA
Wolfram Language. (2024). AllSameBy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AllSameBy.html
BibTeX
@misc{reference.wolfram_2026_allsameby, author="Wolfram Research", title="{AllSameBy}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/AllSameBy.html}", note=[Accessed: 06-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_allsameby, organization={Wolfram Research}, title={AllSameBy}, year={2024}, url={https://reference.wolfram.com/language/ref/AllSameBy.html}, note=[Accessed: 06-August-2026]}