Standard version or idiomatic use of (fn [f & args] (apply f args))

后端 未结 8 1848
南旧
南旧 2021-01-17 12:37

Every so often I find myself wanting to apply a collection of functions on several collections of parameters. It\'s easy to do with map and a very simple function.



        
8条回答
  •  醉话见心
    2021-01-17 13:37

    I can't right now thing of a clojure.core function that you could plug into your map and have it do what you want. So, I'd say, just use your own version.

    Matt is probably right that the reason there isn't a funcall, is that you hardly ever need it in a Lisp-1 (meaning, functions and other bindings share the same name space in clojure)

提交回复
热议问题