An implementation of generators, a special type of stateless stream