docs: update docs with coll? functionality

This commit is contained in:
Abhishek L 2014-01-12 15:52:14 +05:30
parent f159f1499b
commit bd53416a72

View File

@ -6,6 +6,29 @@ Hy Core
Core Functions
===============
.. _is-coll-fn:
coll?
----
.. versionadded:: 0.9.13
Usage: ``(coll? x)``
Returns true if argument is iterable and not a string.
.. code-block:: clojure
=> (coll? [1 2 3 4])
True
=> (coll? {"a" 1 "b" 2})
True
=> (coll? "abc")
False
.. _dec-fn:
dec