Implements generators as traversal sources, behind a function interface.