effect-tree - v1.0.36
    Preparing search index...

    Function modBranchForest

    • Same as modForest but only accepts branches, so the given function is guaranteed to get a non empty forest as its argument.

      Type Parameters

      • A

        Underlying tree type.

      Parameters

      • f: (a: readonly [Tree<A>, Tree<A>]) => readonly [Tree<A>, Tree<A>]

        Function to apply on the root forest.

      Returns (self: Branch<A>) => Branch<A>

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