Why does this not work? (for :let ...)

2012-09-05 Thread yongqli
This code doesn't work: (for [:let [x (range 100)] y x] [y]) IllegalStateException Can't pop empty vector clojure.lang.PersistentVector.pop (PersistentVector.java:346) but maybe it should? -- You received this message because you are subscribed to the Google Groups Clojure group. To

Re: Why does this not work? (for :let ...)

2012-09-05 Thread yongqli
Ah, thanks. No, I was wondering whether it was possible to iterate over something created in a :let This works: (for [x (range 10) :let [ys (range 10)] y ys] [x y]) On Wednesday, September 5, 2012 10:11:08 PM UTC-7, Sean Corfield wrote: On Wed, Sep 5, 2012 at 9:51 PM, yongqli

Feature request: multi arity into

2012-08-12 Thread yongqli
Hi, Any reason why into isn't multi arity? (into to froms) = (reduce into to froms) (into #{} [3 3 4] [2 1] [a]) looks better than (reduce into #{} [[3 3 4] [2 1] [a]]) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send