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