Re: sequences from Enumerations

2009-03-02 Thread Konrad Hinsen
On 03.03.2009, at 01:01, Stephen C. Gilardi wrote: > The seq function is not able to provide a seq on either an > Enumeration or an Iterator. > > clojure.core provides enumeration-seq and iterator-seq to create > seqs on them. Yesterday I added a generic anything-to-seq multimethod to cloj

Re: sequences from Enumerations

2009-03-02 Thread Brian Doyle
That makes sense now. Thanks for the link to the thread. On Mon, Mar 2, 2009 at 5:01 PM, Stephen C. Gilardi wrote: > > On Mar 2, 2009, at 6:37 PM, Brian Doyle wrote: > > I had the same issue and ended up having to use enumeration-seq function. >> Seems >> strange but it worked. >> > > The seq

Re: sequences from Enumerations

2009-03-02 Thread Stephen C. Gilardi
On Mar 2, 2009, at 6:37 PM, Brian Doyle wrote: I had the same issue and ended up having to use enumeration-seq function. Seems strange but it worked. The seq function is not able to provide a seq on either an Enumeration or an Iterator. clojure.core provides enumeration-seq and iterato

Re: sequences from Enumerations

2009-03-02 Thread Brian Doyle
I had the same issue and ended up having to use enumeration-seq function. Seems strange but it worked. On Mon, Mar 2, 2009 at 4:22 PM, Mark Volkmann wrote: > > Should I be able to do something like this? > > (doseq [table-column (-> jtable .getColumnModel .getColumns)] > > javax.swing.JTable has

sequences from Enumerations

2009-03-02 Thread Mark Volkmann
Should I be able to do something like this? (doseq [table-column (-> jtable .getColumnModel .getColumns)] javax.swing.JTable has a getColumnModel method that returns a TableColumnModel. TableColumnModel has a getColumns method that returns Enumeration. I was hoping that would automatically be tr