1.2.0 permalink Arrow_down_16x16
  • (stream-seq s)
Return a lazy seq on the stream. Also accessible via
clojure.contrib.seq/seq-on and
clojure.contrib.generic.collection/seq for streams.

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:113 top

(defn stream-seq
  "Return a lazy seq on the stream. Also accessible via
   clojure.contrib.seq/seq-on and
   clojure.contrib.generic.collection/seq for streams."
  [s]
  (lazy-seq
   (let [[v ns] (stream-next s)]
     (if (nil? ns)
       nil
       (cons v (stream-seq ns))))))
Vars in clojure.contrib.stream-utils/stream-seq: cons defn lazy-seq let nil? ns
Used in 0 other vars

Comments top

No comments for stream-seq. Log in to add a comment.