Infinite streams in Java


Programming languages which support lazy evaluation allow the definition of infinite streams as for example the stream of natural numbers or of prime numbers. Such streams are infinite in the sense that arbitrary many elements can be accessed as these elements are computed "on demand".This paper describes how infinite streams can be implemented in Java, a… (More)
DOI: 10.1145/1168054.1168080