Hi,

On 13 Nov., 07:27, Larrytheliquid <[EMAIL PROTECTED]> wrote:
> Is there a way to pass a vector to a function like let, rather than manually
> typing in the brackets?

let is not a function, but a special form (see: 
http://clojure.org/special_forms).
It is only possible via eval to achieve the desired effect.

(def *bvec* '[x 1 y 2])

(eval
  `(let ~*bvec*
     (+ ~'x ~'y)))

And this is almost surely not what you want to do. eval is a strong
code
smell, if not stench.

Sincerely
Meikel


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to