Skip to content

Commit d1f8503

Browse files
authored
Merge pull request #220 from figurantpp/mapcat-doc-fix
Improve docstring of mapcat
2 parents 9061a25 + 1fa92a7 commit d1f8503

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/manifold/stream.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,10 @@
740740
(d/recur r))))))))))))))
741741

742742
(defn mapcat
743-
"Equivalent to Clojure's `mapcat`, but for streams instead of sequences."
743+
"Equivalent to Clojure's `mapcat`, but for streams instead of sequences.
744+
745+
Note that just like `clojure.core/mapcat`, the provided function `f`
746+
must return a collection and not a stream."
744747
([f s]
745748
(let [s' (stream)]
746749
(connect-via s

0 commit comments

Comments
 (0)