janus a écrit :
> (take 100 (for [x  (range 1000) y (range 1000) (< x y)][x y]))
>
> The above works, but when I changed  [ x y] to (x y) it fails. Could
> anyone come to my help.
>   
(take 100 (for [x (range 1000) y (range 1000) (< x y)] (list x y)))

(x y) means "call the function x passing y as its only arg".

Christophe

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to