add documents for symbol?

This commit is contained in:
Zhao Shenyang 2015-01-30 01:21:26 +08:00
parent dafcc7ec70
commit 487710c093

View File

@ -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?