This works: (filter #(re-find #"\.clj$" (str %)) (file-seq(java.io.File. ".")))
On Thu, Jan 8, 2009 at 7:16 PM, wubbie <sunj...@gmail.com> wrote: > > I tried > > (filter #(re-find #"\.clj$" %) (seq (file-seq(java.io.File. ".")))) > -> java.lang.ClassCastException: java.io.File cannot be cast to > java.lang.CharSequence (NO_SOURCE_FILE:0) > > > On Jan 8, 9:06 pm, Achim Passen <achim.pas...@gmail.com> wrote: > > On 9 Jan., 03:03, Achim Passen <achim.pas...@gmail.com> wrote: > > > > > (filter #(re-find #".clj$" %) … ) > > > > correction: > > (filter #(re-find #"\.clj$" %) … ) > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---