KeyMap

KeyMap[f,key1val1,key2val2,]

f を連想中のキーにマップし,f[key1]val1,f[key2]val2,を与える.

KeyMap[f]

式に適用可能なKeyMapの演算子形を表す.

詳細

  • f[keyi]の中に等しいものがあると,後で現れるものに関連する値が前に現れるものの値を置換する.
  • KeyMap[f][expr]KeyMap[f,expr]に等しい.
  • Parallelize[KeyMap[f,key1val1,key2val2,]]KeyMap[f,key1val1,key2val2,]をすべてのサブカーネルで並列に計算する. »

例題

すべて開くすべて閉じる

  (2)

関数を連想のキーにマップする:

KeyMapの演算子形を使う:

特性と関係  (1)

KeyMapを並列に計算する:

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

テキスト

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

CMS

Wolfram Language. 2014. "KeyMap." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/KeyMap.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_keymap, author="Wolfram Research", title="{KeyMap}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/KeyMap.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_keymap, organization={Wolfram Research}, title={KeyMap}, year={2014}, url={https://reference.wolfram.com/language/ref/KeyMap.html}, note=[Accessed: 22-November-2024 ]}