tag:blogger.com,1999:blog-4110180.post2043627405923898157..comments2023-06-20T05:31:24.545-07:00Comments on Tapestry Central: Clojure Baby StepsAnonymoushttp://www.blogger.com/profile/04486596490758986709noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-4110180.post-46093431241543127312011-08-24T08:48:59.173-07:002011-08-24T08:48:59.173-07:00Your code doesn't work as well. You need
(dos...Your code doesn't work as well. You need<br /><br />(doseq [n (range 5)] (println n))Dmitry Naumenkohttps://www.blogger.com/profile/15825966907763112584noreply@blogger.comtag:blogger.com,1999:blog-4110180.post-46523881542208208392009-01-09T00:05:00.000-08:002009-01-09T00:05:00.000-08:00The code in comment #2 doesn't work. You needdose...The code in comment #2 doesn't work. You need<BR/><BR/><B>doseq [n (range 5)] (println n))</B>GShttps://www.blogger.com/profile/01653295877269914726noreply@blogger.comtag:blogger.com,1999:blog-4110180.post-65611000057311269352008-11-14T13:30:00.000-08:002008-11-14T13:30:00.000-08:00Shawn (at Formos) points out that: (doseq n (range...Shawn (at Formos) points out that:<BR/><BR/><B> (doseq n (range 5) (println n))</B><BR/><BR/>is more idiomatic, as it exists just to perform side effects.Anonymoushttps://www.blogger.com/profile/04486596490758986709noreply@blogger.comtag:blogger.com,1999:blog-4110180.post-38227789473944509742008-11-14T11:11:00.000-08:002008-11-14T11:11:00.000-08:00I've found an easier way to accomplish what I want...I've found an easier way to accomplish what I want:<BR/><BR/><B> (dorun (map println (range 5)))</B><BR/><BR/>The (dorun) function evaluates a lazy seq for the purposes of side effects, then returns null.Anonymoushttps://www.blogger.com/profile/04486596490758986709noreply@blogger.com