In trying to figure out why clojure.contrib.seq-utils/flatten wouldn't work on my data type, I discovered the Java interface clojure.lang.Sequential and the associated test function clojure.core/ sequential?. However, the interface contains no methods. It is used in the Clojure source code only in "instanceof" tests before trying to apply RT.seq() to an object.

Now I am wondering if my type should implement clojure.lang.Sequential or not. Doing so makes "flatten" work, which I like. But I am not sure if there are other effects that I would not like to have. My type already implements Seqable, so calling RT.seq() on it is fine.

Konrad.

--
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