effect-tree
    Preparing search index...

    Function match

    • Match a Tree to leaves and branches.

      Type Parameters

      • A

        Underlying tree type.

      • R

      Parameters

      • matcher: Matcher<A, R>

        A record with the keys onLeaf and onBranch.

      Returns (self: Tree<A>) => R

      Result of the match.