Isn't it just:
(defn a
[m]
(println m))
If you want access to the keys:
(defn a
[{:keys [k j] :as m}]
(println k))
Kris
On Monday, 24 February 2014 14:34:13 UTC, bob wrote:
>
> Hi,
>
> There is a function a
>
> (defn a
> [ & {:as m}]
> (println m))
>
> it accepts pair of params , for example (a :k 1 :j 2), however now I have
> a map {:k 1 :j 2}, the question is how to convert the map to be accepted by
> a?
>
> Thanks
>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.