Phi*_*sky 5 arguments function clojure composition
即,类似于:
(defn dowith [f & arglists]
(doseq [args arglists] (apply f args)))
Run Code Online (Sandbox Code Playgroud)
在Clojure中是否有类似的内置函数?
我经常温和地写这样的东西; 它太短了,它不值得包装:
(map #(apply myfun %) list-of-arglists)
Run Code Online (Sandbox Code Playgroud)
我map经常使用,所以我得到了结果,并保持懒惰.当然如果你不想让它变得懒惰而且不想要结果那么doseq也没关系.