Upgrade juxt docstring to match documentation
This commit is contained in:
parent
c9b40037d5
commit
bacfa5d9eb
@ -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])))
|
||||||
|
Loading…
Reference in New Issue
Block a user