Re: newbie seq question

2014-04-13 Thread François Rey
On 14/04/14 01:29, Stephen Feyrer wrote: To be honest I am still not confident in what I'm doing but there are still avenues to explore. The REPL is you best friend, keep experimenting, keep reading, and I'm sure it will all make sense at some point. On 13/04/14 08:02, François Rey wrote: The

Re: newbie seq question

2014-04-13 Thread Stephen Feyrer
Hi François, Thank you. I have read through each of the articles you've indicated and will read in full the braveclojure book. I am playing the syntax-quotes and will explore the io/resource package. To be honest I am still not confident in what I'm doing but there are still avenues to explore

Re: newbie seq question

2014-04-12 Thread François Rey
On 13/04/14 02:21, Stephen Feyrer wrote: // Get the java file io library (import '(java.io File)) // Get some files (def f (File. "/My/files/")) (def fs (file-seq f)) // Filters for suffixes ".mp3" (def get-mp3 (filter #(.endsWith (.getName %) ".mp3") fs)) // Get the path of

newbie seq question

2014-04-12 Thread Stephen Feyrer
Hey, I have hacked together this code: // Get the java file io library (import '(java.io File)) // Get some files (def f (File. "/My/files/")) (def fs (file-seq f)) // Filters for suffixes ".mp3" (def get-mp3 (filter #(.endsWith (.getName %) ".mp3") fs)) // Get the path of one mp3 (println (t