On Nov 23, 11:58 pm, Justin Giancola <[EMAIL PROTECTED]>
wrote:
> Neat. I noticed that you're forcing the arg lists into vectors in both
> make-maps and in stubfn. Since they're not being manipulated at all,
> you could just as easily leave them as seqs and everything will still
> work.

The reduce is a good idea, but your method of quoting the hash doesn't
evaluate the return value:

user=> (stub [(f 1 2) (+ 1 2)] (f 1 2))
(+ 1 2)

Whilst with the original:

user=> (stub [(f 1 2) (+ 1 2)] (f 1 2))
3

This was why I turned it into a vector. It seemed the easiest way of
getting a hash that I didn't have to quote, but whose values would be
correctly evaluated.

- James
--~--~---------~--~----~------------~-------~--~----~
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