supported call-with-iterator method.