Upgrade juxt docstring to match documentation

This commit is contained in:
Philip Xu 2016-12-27 02:45:09 -05:00
parent c9b40037d5
commit bacfa5d9eb
1 changed files with 2 additions and 2 deletions

View File

@ -299,8 +299,8 @@
(isinstance x collections.Iterator))
(defn 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."
(setv fs (cons f fs))
(fn [&rest args &kwargs kwargs]
(list-comp (apply f args kwargs) [f fs])))