Skip to content

clojure.core/lazy-cat

View this page on ClojureDocs

Type: macro Added: Clojure 1.0 Examples: 7 Runnable: 4
([& colls])

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))

Examples

by pashields on
by kij on
by guruma on . May have evaluation errors.
by mattvvhat on
by parkeristyping on . May have evaluation errors.
by reborg on . May have evaluation errors.
by sanel on

Note by Dimagog

It looks like lazy-cat is on deprecation path in favor of lazy-seq.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.