package ForFrom import LinkedList class Entity vec2 pos LinkedList entities = new LinkedList() init let itr = entities.iterator() for e from itr if e != null e.pos = vec2(0,0) else itr.remove() itr.close() endpackage