effect-tree
    Preparing search index...

    Variable modBranchConst

    modBranch: {
        <A>(self: Tree<A>, f: (branch: Branch<A>) => Tree<A>): Tree<A>;
        <A>(f: (branch: Branch<A>) => Tree<A>): (self: Tree<A>) => Tree<A>;
    } = ...

    Run the given function over the given tree if it is a branch, else return the tree unchanged. This is like match where the onLeaf branch is set to identity.

    Type Declaration

    Underlying tree type.

    Tree on which to run the given function.

    A function from Branch to Tree.

    The tree unchanged if it is a leaf, else the result of applying the given function on the branch.