Implementing ISeq

2009-07-26 Thread eyeris
I want to implement ISeq to provide a sequence over an Excel file. I plan to implement it in Java. I see that Range extends ASeq for its default implementation of cons() and more(). Is extending ASeq the recommended way to implement a sequence?

Re: Implementing ISeq

2009-07-26 Thread Meikel Brandmeyer
Hi, Am 26.07.2009 um 22:45 schrieb eyeris: I want to implement ISeq to provide a sequence over an Excel file. I plan to implement it in Java. I see that Range extends ASeq for its default implementation of cons() and more(). Is extending ASeq the recommended way to implement a sequence? Yes.

Re: Implementing ISeq

2009-07-26 Thread Garth Sheldon-Coulson
When I asked the same question a few weeks ago, Rich Hickey gave this response: http://groups.google.com/group/clojure/browse_thread/thread/77ba769caef82803/60738209810ec491 Looking at StringSeq, as he suggested, was particularly helpful. I found useful the idea of using an integer counter to

Implementing ISeq

2009-07-07 Thread Garth Sheldon-Coulson
Hello Clojurians--- I'm about to begin writing a Clojure wrapper for a Java data structure that's amenable to seq-ability. 1) I'd like to implement the ISeq interface. Could someone point me to some up-to-date documentation on what I need to implement? Sorry if this is covered somewhere

Re: Implementing ISeq

2009-07-07 Thread Rich Hickey
On Jul 7, 5:31 pm, Garth Sheldon-Coulson g...@mit.edu wrote: Hello Clojurians--- I'm about to begin writing a Clojure wrapper for a Java data structure that's amenable to seq-ability. 1) I'd like to implement the ISeq interface. Could someone point me to some up-to-date documentation on

Re: Implementing ISeq

2009-07-07 Thread Garth Sheldon-Coulson
Thanks Rich, I'll take a look. By the way, Clojure is a beautiful and enriching thing. Keep up the great work. On Tue, Jul 7, 2009 at 6:21 PM, Rich Hickey richhic...@gmail.com wrote: On Jul 7, 5:31 pm, Garth Sheldon-Coulson g...@mit.edu wrote: Hello Clojurians--- I'm about to begin