1.2.0 permalink Arrow_down_16x16
  • (seqable? x)
Returns true if (seq x) will succeed, false otherwise.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/core.clj:78 top

(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)))
Vars in clojure.contrib.core/seqable?: -> defn instance? nil? or seq? string?
Used in 0 other vars

Comments top

No comments for seqable?. Log in to add a comment.