to-chan

added

ns
clojure.core.async

type
function

(to-chan coll)

Creates and returns a channel which contains the contents of coll,
closing when exhausted.

                user=> (def c (to-chan (range 10)))
#'user/c
user=> (<!! c)
0
user=> (<!! c)
1
user=> (<!! c)
2
user=> (<!! c)
3