Re: detecting running as script

2009-01-03 Thread Kyle Hargraves
On Sat, Jan 3, 2009 at 12:40 PM, Mark Volkmann wrote: > Sounds good. I can't find the function that returns the current > namespace though. Do you remember what it is? You can get the current namespace from *ns*. k --~--~-~--~~~---~--~~ You received this message

Re: adding line number while reading a file

2009-01-09 Thread Kyle Hargraves
On Fri, Jan 9, 2009 at 9:08 PM, James Reeves wrote: > > On Jan 10, 12:22 am, wubbie wrote: >> How can you add line numbers for each line printed from the file. >> Without line number, I have this: >> >> (with-open [rdr (reader "executors.clj")] >> (filter #(println %) (line-seq rdr))) > > I do