println is a function that has the side effect of printing a string to the output, but it also has a return value of nil.
When working at the REPL, these can sometimes be mingled together due to the order of evaluation. If you want to do something like 'for' but only for the purposes of side effects, and the return value is unimportant, try 'doseq' instead. Andy On Sep 13, 2012, at 6:54 PM, Giuliani Sanches wrote: > Hi guys, > > Maybe the subject does not give a got clue about my question, so here's a > snippet of code: > > http://pastebin.com/tJNhabJw > > Could you please help me to understand why in the second case the output is > (Juice Sandwich nil Banana nil nil) ? Where these "nil" came from ? > > Thank you! -- 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