From bd53416a727f06df702250ad303425578840b9ee Mon Sep 17 00:00:00 2001 From: Abhishek L Date: Sun, 12 Jan 2014 15:52:14 +0530 Subject: [PATCH] docs: update docs with coll? functionality --- docs/language/core.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/language/core.rst b/docs/language/core.rst index b2e4e3e..deaf16b 100644 --- a/docs/language/core.rst +++ b/docs/language/core.rst @@ -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