Clojure applying a map and keyword arguments destruction

后端 未结 3 1886
生来不讨喜
生来不讨喜 2021-02-13 17:47

Consider a function with the following signature:

(defn make-widget [& {:keys [x y] :or {x 10 y 20}}]
 ...)

What is the best way to pass a

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