Streams in python

Since python supports closure, you don’t need all OOP verbosity to implement iterators/generators concept.
There is something called streams in functional programming which behave quite similarly.
Basically streams return tuple of two elements or pair.
Mostly first element is value and second element as thunk which when called will do the same for next value.
Here are few examples.

Erlang process rings and calculation examples.

Ring of processes can be used to do meaningful calculations. Following code first makes a simple process ring. Next is demonstration of calculation of Fibonacci numbers using proc rings.The last part does matrix multiplication on a process ring using map reduce kind of functionality. It is inspired by excellent Unix Systems programming book by Robbins and Robbins.