Hi,

I would like to achieve something like this:

(def k [:key1 :key2 :key3])
(def mystruct (create-structure k))

Unfortunately, create structure treats the whole vector of params (or
any other seq) as one element, so the resulting list will have only
one composite key [:key1 :key2 :key3] instead of tree keys.
The above is only a simplified example of the functionality that i
need (creating a structure using a provided seq of keys) so the "just
use (create-struct :key1 :key2 :key3)" answer is not a solution :)

The questoin may be more general: If I have a function (fn [& params]
(dosomethingwithparams))
how can I call the fn with a seq of params and achieve that it treats
is as many params instead of treating the whole seq as one param?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to