Using iterators