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 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 from,
> but I cannot do that with deftype.
> 
> Is there a way to do a new type of Seq today or I should wait that
> clojure-in-clojure advances a bit more to try that?
> Or should I not try to implement anything directly and use lazy-seq?
> 
> 
> Best regards,
> 
> Nicolas.
> 
> -- 
> 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
> Note that posts from new members are moderated - please be patient with your 
> first post.
> 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

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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

Reply via email to