Simple infinite generator impl.