On Wed, Jun 3, 2009 at 12:53 PM, CuppoJava <patrickli_2...@hotmail.com>wrote:

>
> Is there a function that will return true iff calling seq on it's
> argument will not throw an error? I thought it was seq?, but (seq? [1
> 2 3]) returns false.


I was looking for this the other day as well and didn't see it. However,
this might work for you:

(instance? clojure.lang.Seqable [1 2 3]) ; => true

HTH,

- J.

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