ISeq map_seq = map_ent;
ISeq coll_seq = coll_ent;
while ((seq_has_more(map_seq) || seq_has_more(coll_seq)) && (limit < 0 || count < limit)) {
if (!seq_has_more(coll_seq)) {
IMapEntry ent = (IMapEntry) map_seq.first();
IPersistentCollection coll = (IPersistentCollection) ent.getValue();
coll_seq = coll.seq();
map_seq = map_seq.next();
}
assert seq_has_more(coll_seq);