effect-tree
    Preparing search index...

    Variable setValueConst

    setValue: {
        <A>(self: Tree<A>, value: A): Tree<A>;
        <A>(value: A): (self: Tree<A>) => Tree<A>;
    } = ...

    Set the value of a tree root to a given value of the same type.

    Type Declaration

    Underlying tree type.

    The tree being changed.

    New value for the root node.

    A new tree where the root value has been replaced by the given value.