This is an old, but interesting article on creating an infinite list structure in Perl. Granted that a real infinite list isn't possible, given the constraints of computing power and memory, but the structure built is more like a flow of data, or stream. The author compares it to using unix pipes - it creates a flow, that in theory, you could continue to pull data from as long as you like, creating the illusion of an infinite list.
Infinite Lists in Perl
Infinite Lists in Perl
Comments
No comments yet. Leave a Comment
