On 5 August 2014 at 19:41:03, Cecil Westerhof (cldwester...@gmail.com) wrote:
> > ​When run in the REPL it gives the output I expect, but when executed  
> as a program, it does not give any output at all. What is going on  
> here?

Because `for` is lazy. In the REPL the result has to be computed because it 
needs
to be converted to a string. Wrap it in `doall`, that will force evaluation. 
--  
@michaelklishin, github.com/michaelklishin

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to