thank, it was str as usual.

On Jan 8, 9:22 pm, "Brian Doyle" <[email protected]> wrote:
> This works:
>
> (filter #(re-find #"\.clj$" (str %)) (file-seq(java.io.File. ".")))
>
> On Thu, Jan 8, 2009 at 7:16 PM, wubbie <[email protected]> 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 <[email protected]> wrote:
> > > On 9 Jan., 03:03, Achim Passen <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to