- Define a function do-nothing which takes a single argument x and returns it, unchanged.
(defn do-nothing [x] ___)
In Clojure, this is the identity function. By itself, identity is not very useful, but it is sometimes necessary when working with higher-order functions.
(source identity)
第四题的题目是这样的,似乎没有太看懂,
答案是这样的吗?
(defn do-nothing [x] x)