Re: error with doseq in defrecord function

2010-10-31 Thread Sam Roberton
> (defrecord Foo [properties] >   Fooable >   (foo [f] >     (let [s (java.util.HashSet.)] >      (doto s >    (doseq [p properties] (.add s p)) > > When I load/reload the above code in the repl I get this error > > vector for its binding (config.clj:22)> The problem is the way you're cal

error with doseq in defrecord function

2010-10-31 Thread John Sanda
I am getting an error when trying to call doseq from within a defrecord function, but I do not get the error with the same code outside of the defrecord. Here is an example: (defprotocol Fooable (foo [this])) (defn add-props [s properties] (doseq [p properties] (.add p))) (defrecord Foo [prope