Hi, Consider the following definition for concat-ing two channels.
(defn my-concat [chan1 chan2 buffer-size] (let [out (chan buffer-size)] (go (loop [lst (list chan1 chan2)] (when (not (empty? lst)) (let [msg (<! (first lst))] (if msg (do (>! out msg) (recur lst)) (recur (rest lst)))))))) Is there a core.async builtin for this? (It seems like a very trivial operation, but it's not clear to me how to create it by just putting together core.async primitives.) Thanks! -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.