Dear all,
I am using deftype to write a pure data structure.
It would be neat to make it Seqable.
I looked a bit around on how to make that and did not manage to figure it out.
I can implement ISeq but it does not seem to be enough.
There seems to be an ASeq that my data structure should inherit
Hi Nicolas,
Please take a look at how headers lazy map is constructed in ahc-clj
http://github.com/neotyk/ahc-clj/blob/master/src/async/http/client/headers.clj
It is a map and is sequable as well.
HTH,
Hubert.
On Jul 30, 2010, at 12:04 PM, Nicolas Oury wrote:
Dear all,
I am using deftype
2010/7/30 Nicolas Oury nicolas.o...@gmail.com
Dear all,
I am using deftype to write a pure data structure.
It would be neat to make it Seqable.
If you want to make it seqable, it seems sufficient to implement
clojure.lang.Seqable, which has the method seq().
Having then your type directly