2012/6/8 Ambrose Bonnaire-Sergeant <abonnaireserge...@gmail.com> > No. I assume you mean seqable. > > If it did exist, it would look something like: > > Is there a simple test for sequable?
Oh ok, I don't get the difference between seq and seqable.. Btw, i found this ( https://github.com/richhickey/clojure-contrib/blob/9f448420b082ce8a6e577696df5203a405f4e8d4/src/main/clojure/clojure/contrib/core.clj#L78) : (defn seqable? "Returns true if (seq x) will succeed, false otherwise." [x] (or (seq? x) (instance? clojure.lang.Seqable x) (nil? x) (instance? Iterable x) (-> x .getClass .isArray) (string? x) (instance? java.util.Map x))) -- Cédric -- 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