Tweak partition link.

This commit is contained in:
Berker Peksag 2015-08-06 07:10:39 +03:00
parent a01957aef2
commit 2963ce6121

View File

@ -672,21 +672,22 @@ Returns ``True`` if *x* is odd. Raises ``TypeError`` if
False
.. _pos?-fn:
.. _partition-fn:
partition
---------
Usage: ``(partition n coll)``
Chunks coll into tuples of length n. The remainder, if any, is not included.
Chunks coll into tuples of length *n*. The remainder, if any, is not included.
.. code-block:: hy
=> (list (partition 3 (range 10)))
[(0, 1, 2), (3, 4, 5), (6, 7, 8)]
.. _partition-fn:
.. _pos?-fn:
pos?
----