We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c61a235 commit 1db8679Copy full SHA for 1db8679
src/main/cljs/cljs/core.cljs
@@ -3611,10 +3611,10 @@ reduces them without incurring seq initialization"
3611
;;;;;;;;;;;;;;;;
3612
3613
(defn to-array
3614
- "Naive impl of to-array as a start."
3615
- [s]
+ "Returns an array containing the contents of coll."
+ [coll]
3616
(let [ary (array)]
3617
- (loop [s (seq s)]
+ (loop [s (seq coll)]
3618
(if-not (nil? s)
3619
(do (. ary push (first s))
3620
(recur (next s)))
0 commit comments