Suppose I have a function like this: (defn foo [arg1 & other-args] ...)
I have a collection I need to pass to foo after the first arg like this: (foo "some value" my-collection) What I need is a way to expand my-collection into individual arguments that are passed to foo so that they will be collected back into other-args as a sequence. I could create a new sequence containing "some value" and the items in my-collection and then use apply on foo and the new sequence. Is there a better way? -- R. Mark Volkmann Object Computing, Inc. --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---