static Steppable iteratorToSteppable(Iterator it) { ret it == null ? null : new Steppable { public bool step() { if (!it.hasNext()) false; it.next(); true; } }; }