-
-
Save zjhmale/a3305453c9a0317a7f61 to your computer and use it in GitHub Desktop.
write elegant and concise code use high order function in clojure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;fp语言之所以有抽象能力或者说非fp语言是告诉机器如何一步一步解决问题 而fp语言是向机器描述问题 然后让机器给我们答案其中一个语言原语就是高阶函数 也就是函数可以被当做参数和返回值 还有闭包的存在 函数不再是对象的附属 而是独立的个体 甚至LC中 只有单参函数这一个基本元素却能做到图灵完备 正所谓大道至简 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment