newbee mystery

2016-10-08 Thread Phil Virgo
WHY? The following prints 1/n 2/n 3/n fine in the repl (for [f [1 2 3]] (println f)) But does nothing in this lein project (the "Hello World???" does print) (ns slide.core (:gen-class)) (defn -main [& args] ;; work around dangerous default behaviour in Clojure (alter-var-root #'*rea

Re: newbee mystery

2016-10-08 Thread Phil Virgo
9 PM UTC-4, James Reeves wrote: > > > > On 9 October 2016 at 03:00, Phil Virgo > > wrote: > >> WHY? >> >> The following prints 1/n 2/n 3/n fine in the repl >> >> (for [f [1 2 3]] (println f)) >> >> But does nothing in this lein projec

new learner question

2016-05-23 Thread Phil Virgo
I just starting to try and teach myself Clojure. Kindly let me know if there is a more appropriate place I should post simple questions. (def s '(1 1 1 4 99) (take-while #(= (first s) %) s) ; works fine: (1 1 1) (take-while #(= (first %) %) s) ; IllegalArgumentException Don't know how t

Re: new learner question

2016-05-23 Thread Phil Virgo
Don't want to thank each of you individually - so to all who answered - Thank-you! On Monday, May 23, 2016 at 9:10:47 PM UTC-4, Phil Virgo wrote: > > I just starting to try and teach myself Clojure. Kindly let me know if > there is a more appropriate place I should post si