Re: gen-class and state...

2011-03-27 Thread Stefan Sigurdsson
How do you guys normally manage resources when using lazy sequences? I was playing around with this question, and I looked into extending line-seq to take a file path parameter that is coerced to reader: (defn line-seq ([^java.io.BufferedReader rdr] (when-let [line

Re: gen-class and state...

2011-03-27 Thread Stefan Sigurdsson
at 12:17 PM, Stefan Sigurdsson ste...@gmail.comwrote: How do you guys normally manage resources when using lazy sequences? I was playing around with this question, and I looked into extending line-seq to take a file path parameter that is coerced to reader: (defn line-seq

Re: Jesus, how the heck to do anything?

2011-03-23 Thread Stefan Sigurdsson
On Wed, Mar 23, 2011 at 8:50 AM, ultranewb pineapple.l...@yahoo.com wrote: Short version: How do I just open an editor, type in some Clojure code, save it in a file, and then run it? Open a new file hello.clj in your current directory. Type in (println hello world), save and close. Run

Re: Jesus, how the heck to do anything?

2011-03-23 Thread Stefan Sigurdsson
Maybe try Leiningen? It is very nice, and it can take care of much of the Java hassle more or less behind the scenes. First download https://github.com/technomancy/leiningen/raw/master/bin/leinhttps://github.com/technomancy/leiningen/raw/master/bin/lein.bat (Linux, OSX, Cygwin)