diff --git a/docs/contrib/anaphoric.rst b/docs/contrib/anaphoric.rst index 44d6bd1..4b42a58 100644 --- a/docs/contrib/anaphoric.rst +++ b/docs/contrib/anaphoric.rst @@ -46,7 +46,7 @@ ap-each-while Usage: ``(ap-each-while list pred body)`` Evaluate the form for each element where the predicate form returns -True. +`True`. .. code-block:: hy @@ -63,7 +63,7 @@ ap-map Usage: ``(ap-map form list)`` The anaphoric form of map works just like regular map except that -instead of a function object it takes a Hy form. The special name, +instead of a function object it takes a Hy form. The special name ``it`` is bound to the current object from the list in the iteration. .. code-block:: hy diff --git a/docs/contrib/index.rst b/docs/contrib/index.rst index 53dcf23..eda11f2 100644 --- a/docs/contrib/index.rst +++ b/docs/contrib/index.rst @@ -1,6 +1,6 @@ - -Contrib Modules Index -===================== +========================= +Contributor Modules Index +========================= Contents: diff --git a/docs/contrib/loop.rst b/docs/contrib/loop.rst index 84b37ea..d3d3c03 100644 --- a/docs/contrib/loop.rst +++ b/docs/contrib/loop.rst @@ -25,7 +25,7 @@ optimization (TCO) in their Hy code. allowing efficient structured programming. -- Wikipedia (http://en.wikipedia.org/wiki/Tail_call) - + Macros ====== diff --git a/docs/contrib/multi.rst b/docs/contrib/multi.rst index 91d8cfa..f308191 100644 --- a/docs/contrib/multi.rst +++ b/docs/contrib/multi.rst @@ -4,8 +4,8 @@ defmulti .. versionadded:: 0.10.0 -`defmulti` lets you arity-overload a function by the given number of -args and/or kwargs. Inspired by clojures take on `defn`. +`defmulti` lets you arity-overload a function by the given number of +args and/or kwargs. Inspired by Clojure's take on `defn`. .. code-block:: clj diff --git a/docs/language/core.rst b/docs/language/core.rst index 3a7c2df..742c274 100644 --- a/docs/language/core.rst +++ b/docs/language/core.rst @@ -419,6 +419,9 @@ Contrast with :ref:`iterable?-fn`. => (iterator? (iter {:a 1 :b 2 :c 3})) True + +.. _list*-fn: + list* ----- @@ -484,7 +487,7 @@ merge-with .. versionadded:: 0.10.1 -Usage: ``(merge-with f &rest maps) +Usage: ``(merge-with f &rest maps)`` Returns a map that consist of the rest of the maps joined onto first. If a key occurs in more than one map, the mapping(s) from the latter @@ -612,7 +615,7 @@ Raise ``ValueError`` if ``n`` is negative. .. _numeric?-fn: numeric? ---------- +-------- Usage: ``(numeric? x)`` @@ -680,7 +683,7 @@ Raises ``TypeError`` if ``(not (numeric? x))``. .. _second-fn: second -------- +------ Usage: ``(second coll)`` @@ -762,7 +765,7 @@ Return `True` if x is zero (0). Sequence Functions -======================= +================== Sequence functions can either create or operate on a potentially infinite sequence without requiring the sequence be fully realized in @@ -821,7 +824,7 @@ To get the Fibonacci number at index 9, (starting from 0): .. _cycle-fn: cycle ------- +----- Usage: ``(cycle coll)`` @@ -1156,7 +1159,7 @@ Return an iterator from ``coll`` as long as predicate, ``pred`` returns True. => (list (take-while neg? [ 1 2 3 -4 5])) [] -.. _zipwith: +.. _zipwith-fn: zipwith -------