effect-tree
    Preparing search index...

    Function modForest

    Run a function to change the root node forest. If the tree is a Leaf the given function will receive the empty array as a parameter, if it returns any trees then leaves will be turned into a Branches, and if it returns the empty array branches will be turned into leaves.

    Underlying tree type.

    Tree on which to run the given function.

    Function to apply on the root forest.

    The given tree with its root forest set to the result of the given function.