ancestor_iterator: Ancestor iterator.

Description Usage Arguments Examples

View source: R/ancestors.r

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

1

Arguments

proto

the object with the ancestors

Examples

1
2
3
4
5
A <- Object$clone()
B <- A$clone()
C <- B$clone()
ai <- mutatr:::ancestor_iterator(C)
while(ai$has_next()) print(ai$get_next())

hadley/mutatr documentation built on May 17, 2019, 11:04 a.m.