From 0c4d416a37bc7d4ee03dddd5720e4e6b62b35206 Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Mon, 26 Dec 2016 13:26:44 -0800 Subject: [PATCH] juxt documentation edits --- docs/language/core.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/language/core.rst b/docs/language/core.rst index 3fc1c8e..3e9db35 100644 --- a/docs/language/core.rst +++ b/docs/language/core.rst @@ -515,8 +515,8 @@ juxt Usage: ``(juxt f &rest fs)`` -Return a function that apply a set of functions to same arguments -and collect the result into a list. +Return a function that applies each of the supplied functions to a +single set of arguments and collects the results into a list. .. code-block:: hy @@ -526,7 +526,7 @@ and collect the result into a list. => (dict (map (juxt identity ord) "abcdef")) {'f': 102, 'd': 100, 'b': 98, 'e': 101, 'c': 99, 'a': 97} - => (setv [total difference product quotient] ((juxt + - * /) 24 3)) + => ((juxt + - * /) 24 3) [27, 21, 72, 8.0]