【发布时间】:2013-03-21 19:53:18
【问题描述】:
在 Clojure 中,我可以让第二个符号引用函数。
(defn sq [x] (* x x))
(sq 7)
-> 49
(def square sq)
(square 7)
-> 49
在 Emacs-Lisp 中,我只知道
(defun square (x) (sq x))
在精神上是否有更接近第一个的解决方案?
【问题讨论】:
-
相关stackoverflow.com/questions/192049/…,见第二个答案。