• (pick-all streams)
Return a vector containing the next value of each stream argument
inside a stream transformer.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/stream_utils.clj:160 top

(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])))
Vars in clojure.contrib.stream-utils/pick-all: defn let nil? some
Used in 0 other vars

Comments top

No comments for pick-all. Log in to add a comment.