Method ADT.Sequence()->SequenceIterator()->distance() Method distance int distance(object iter) Parameter iter The iterator to measure the distance to. Returns Returns distance between this iterator and iter. Throws An error if the two iterator could not be compared.