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

View File

@ -299,8 +299,8 @@
(isinstance x collections.Iterator)) (isinstance x collections.Iterator))
(defn juxt [f &rest fs] (defn juxt [f &rest fs]
"Return a function that apply a set of functions to same arguments and "Return a function that applies each of the supplied functions to a single
collect the result into a list." set of arguments and collects the results into a list."
(setv fs (cons f fs)) (setv fs (cons f fs))
(fn [&rest args &kwargs kwargs] (fn [&rest args &kwargs kwargs]
(list-comp (apply f args kwargs) [f fs]))) (list-comp (apply f args kwargs) [f fs])))