Return a vector containing the next value of each stream argument
inside a stream transformer.
(defn pick-all
"Return a vector containing the next value of each stream argument
inside a stream transformer."
[streams]
(let [next (map stream-next streams)
values (map first next)
streams (vec (map second next))]
(if (some nil? streams)
[nil nil]
[values streams])))
Comments top
No comments for pick-all. Log in to add a comment.