Anonymous function returning 1 using #()

后端 未结 3 1116
礼貌的吻别
礼貌的吻别 2021-02-07 06:19

Using defn or fn it\'s easy to create a function that taking one argument that ignores it and returns 1:

(defn ret1 [arg] 1)
(fn [arg] 1)

Is it

3条回答
提交回复
热议问题