ancestor_iterator {mutatr} | R Documentation |
Ancestor iterator. This iterator has two methods has_next
and
get_next
and iterates deep-first through the ancestry graph of
a mutatr object.
ancestor_iterator(proto)
proto |
the object with the ancestors |
A <- Object$clone() B <- A$clone() C <- B$clone() ai <- ancestor_iterator(C) while(ai$has_next()) print(ai$get_next())