Switch
Switch[expr,form1,value1,form2,value2,…]
计算 expr,然后依次和每个 formi 比较,计算并返回相应于找到的第一个匹配的 valuei.
范例
Wolfram Research (1988),Switch,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Switch.html.
文本
Wolfram Research (1988),Switch,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Switch.html.
CMS
Wolfram 语言. 1988. "Switch." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/Switch.html.
APA
Wolfram 语言. (1988). Switch. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Switch.html 年