HF RL Explorer

Implement a Python generator function tree nodes(root, follow=is seqcont, children=iter) that traverses a…

Implement a Python generator function tree nodes(root, follow=is seqcont, children=iter) that traverses a…: a task in repo2rlenv-r2e (Harbor dataset). Behavior requirements: - root is an iterable container whose direct elements are the top-level nodes. The root itself is NOT yielded; only its…

The task

Behavior requirements: - `root` is an iterable container whose direct elements are the top-level nodes. The root itself is NOT yielded; only its contents (and recursively their contents) are. - For each node yielded, call `follow(node)`. If it returns True, the node is a container and its children should be visited.…

Part of FineEnvs/repo2rlenv-r2e.