You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to comp...@googlegroups.com
I am new to clojure , i just simply wanted to loop through a list and
have them printed out
I wonder why when i do this i get no result
(doseq [x [ 1 2 3 4]
(prn x))
regards,
George
Colin Jones
unread,
Dec 29, 2014, 11:29:43 AM12/29/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to comp...@googlegroups.com
It's because you are missing an ending square bracket on the first line. It should be
(doseq [x [1 2 3 4]]
(prn x))
This mailing list is specific to Compojure, the web routing library. The main Clojure mailing list is probably a better place to ask general clojure questions like this one: https://groups.google.com/forum/#!forum/clojure
Jeff Bowman
unread,
Dec 29, 2014, 11:46:28 AM12/29/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to comp...@googlegroups.com
Works in the repl (ie lein repl, then your code), but prn doesn't return a value and doseq returns nil