This repository was archived by the owner on Apr 16, 2021. It is now read-only.
File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -96,13 +96,13 @@ collection elements specify the initial two elements in the reduction. The redu
96
96
supports the 'reduced' function in the standard library so that a single input
97
97
collection can produce multiple reduced outputs.
98
98
99
- * A map containing an arity 2 function and a second value treats the function as
99
+ * A vector containing an arity 2 function and a second value treats the function as
100
100
a reducer and the second value as the initial value in the reduction.
101
101
102
102
The input is processed through fns, a single element at a time, without creating
103
103
intermediate collections, in the order in which fns are specified."
104
104
[input & fns]
105
- (let [input (if (or (map ? input) (sequential? input)) input [input])
105
+ (let [input (if (or (vector ? input) (sequential? input)) input [input])
106
106
composed-fns (fns->transducer fns)]
107
107
(sequence composed-fns input)))
108
108
@@ -172,5 +172,3 @@ container match, the same container will be returned multiple time."
172
172
(v/tree-visitor (v/tree-zipper node) [] [(grep-tree-visitor pattern)])))
173
173
([pattern]
174
174
(partial grep pattern)))
175
-
176
-
You can’t perform that action at this time.
0 commit comments