From 2963ce6121c5ebb17eddddc3bef478dad9f78215 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Thu, 6 Aug 2015 07:10:39 +0300 Subject: [PATCH] Tweak partition link. --- docs/language/core.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/language/core.rst b/docs/language/core.rst index 544926e..dd6d8f3 100644 --- a/docs/language/core.rst +++ b/docs/language/core.rst @@ -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? ----