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

2012-09-05 Thread yongqli
:51 PM, yongqli > > wrote: > > This code doesn't work: > > > > (for [:let [x (range 100)] > > y x] > > [y]) > > My understanding is that :let is a modifier that must follow a > binding. Did you mean: > > (for [x (range 100) >

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. T

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,