コンストラクトの逆のようなものが欲しい{:keys [...]}
:
(let [x 1 y 2 z 3] (create-map x y z))
...戻る必要があり{:x 1 :y 2 :z 3}
ます。
つまり、各変数の名前をのように2回入力することは避けたいと思います{:x x :y y :z z}
。
この関数が必要な例:
(defn create-some-service-handle [user-id password api-key]
{ :api-key api-key
:user-id user-id
:connection (obtain-connection user-id password) })