From 487710c0934207c2fa0d270a7f50023c59674350 Mon Sep 17 00:00:00 2001 From: Zhao Shenyang Date: Fri, 30 Jan 2015 01:21:26 +0800 Subject: [PATCH] add documents for symbol? --- docs/language/core.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/language/core.rst b/docs/language/core.rst index 916995e..a3dd511 100644 --- a/docs/language/core.rst +++ b/docs/language/core.rst @@ -736,6 +736,23 @@ Returns ``True`` if *x* is a string. => (string? -2) False +.. _symbol?-fn: + +symbol? +------- + +Usage: ``(symbol? x)`` + +Returns ``True`` if *x* is a symbol. + +.. code-block:: hy + + => (symbol? 'foo) + True + + => (symbol? '[a b c]) + False + .. _zero?-fn: zero?