lazy-cat
(lazy-cat & colls)
Details:
Expands to code which yields a lazy sequence of the concatenation of the
supplied collections. Each collections expression is not evaluated until it is
needed.
Code |
Expands To |
(lazy-cat x y z)
|
(concat (lazy-seq x)
(lazy-seq y)
(lazy-seq z)) |
See Also:
Source docstring:
Expands to code which yields a lazy sequence of the concatenation
of the supplied colls. Each coll expr is not evaluated until it is
needed.
(lazy-cat xs ys zs) === (concat (lazy-seq xs) (lazy-seq ys) (lazy-seq zs))
(core/defmacro lazy-cat
[& colls]
`(concat ~@(map #(core/list `lazy-seq %) colls)))