effect-tree
    Preparing search index...

    Variable modValueConst

    modValue: {
        <A>(self: Tree<A>, f: (a: A) => A): Tree<A>;
        <A>(f: (a: A) => A): (self: Tree<A>) => Tree<A>;
    } = ...

    Run a function to change the value, but not the type, of the top level node of the given tree.

    Type Declaration

    Underlying tree type.

    Tree on which to run the given function.

    Function to apply on the root node value.

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