1.2.0 permalink Arrow_down_16x16
  • (stream-drop n stream)
Return a stream containing all but the first n elements of stream.

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

(defn stream-drop
  "Return a stream containing all but the first n elements of stream."
  [n stream]
  (if (zero? n)
    stream
    (let [[_ s] (stream-next stream)]
      (recur (dec n) s))))
Vars in clojure.contrib.stream-utils/stream-drop: dec defn let zero?
Used in 0 other vars

Comments top

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