hy/docs/extra/reserved.rst

20 lines
452 B
ReStructuredText

==============
Reserved Names
==============
names
=====
Usage: ``(names)``
This function can be used to get a list (actually, a ``frozenset``) of the
names of Hy's built-in functions, macros, and special forms. The output
also includes all Python reserved words. All names are in unmangled form
(e.g., ``not-in`` rather than ``not_in``).
.. code-block:: hy
=> (import hy.extra.reserved)
=> (in "defclass" (hy.extra.reserved.names))
True