user=> (doall
(for [x (range 2) y (range 2)]
(println x "@" y)
(* x y)))
Expected:
0 @ 0
0 @ 1
1 @ 0
1 @ 1
(0 0 0 1)
Got:
#<CompilerException java.lang.IllegalArgumentException: Wrong number
of args passed to: core$for (NO_SOURCE_FILE:220)>
Wrapping the body in an explicit "do" fixes it, but the need for an
explicit "do" violates the convention for non-conditional binding
forms -- ones like (let [binds] body), and (loop [binds] body), and so
on.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
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
-~----------~----~----~----~------~----~------~--~---