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

    Function pathListUnfold

    • Build a tree from a list of paths and an order. For example:

      const paths = [['A', 'B'], ['A', 'C', 'D'], ['A', 'C', 'E']]

      const tree = treeAna(pathListUnfold(STR.Order))(paths)
      // A(B, C(D, E))

      Type Parameters

      • A

      Parameters

      • order: Order<A>

      Returns TreeUnfolder<A, [[A, ...A[]], ...[A, ...A[]][]]>