
第二章
函數式程式設計
A man builds a city
With banks and cathedrals
A man melts the sand so he can
See the world outside
(You’re gonna meet her there)
A man makes a car
(She’s your destination)
And builds a road to run them on
(Gotta get to her)
A man dreams of leaving
(She’s imagination)
But he always stays behind
And these are the days
When our work has come asunder
And these are the days
When we look for something other
U2, “Lemon”
2.0 導論
函數式程式設計
[Page-023]
許多書籍均提及 Mathematica 支援各種不同程式設計風格,如程序式(procedural)、遞
迴式(recursive)、規則式(rule-based)、函數式(functional),(某些程度上)甚至稱
得上支援物件導向(object-oriented)風格,但我相信函數式及規則式是最值得深入學習
的 Mathematica 程式設計風格,有些狂熱分子甚至認為只有以函數式風格寫程式,才稱
得上真的在使用 Mathema