Same as modForest but only accepts branches, so the given function is guaranteed to get a non empty forest as its argument.
Underlying tree type.
Function to apply on the root forest.
The given branch with its root forest set to the result of the given function.
Same as modForest but only accepts branches, so the given function is guaranteed to get a non empty forest as its argument.