ancestor_iterator {mutatr}R Documentation

Ancestor iterator.

Description

Ancestor iterator. This iterator has two methods has_next and get_next and iterates deep-first through the ancestry graph of a mutatr object.

Usage

ancestor_iterator(proto)

Arguments

proto the object with the ancestors

Examples

A <- Object$clone()
B <- A$clone()
C <- B$clone()
ai <- ancestor_iterator(C)
while(ai$has_next()) print(ai$get_next())

[Package mutatr version 0.1 Index]