Stream (computer science)
This article does not cite any sources. (February 2020) (Learn how and when to remove this template message)
data Stream α = Nil | Cons α (Stream α)
Generating and computing with streams requires lazy evaluation, either implicitly in a lazily evaluated language or by creating and forcing thunks in an eager language. In total languages they must be defined as codata and can be iterated over using (guarded) corecursion.
|This programming language theory or type theory-related article is a stub. You can help Wikipedia by expanding it.|