Puneet Varma (Editor)

Stream (computer science)

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In type theory and functional programming, a stream is a potentially infinite analog of a list, given by the coinductive definition:

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.

References

Stream (computer science) Wikipedia