static persistable class ListWalker implements Iterator { L list; int index; *(L *list) {} public A next() { if (index < l(list)) ret list.get(index++); null; } public bool hasNext() { ret index < l(list); } }