effect-tree
    Preparing search index...

    Variable pathListFoldConst

    Collect all leaf paths from a tree at a level. For example:

    const tree = make('A', [of('B'), make('C', [of('D', 'E')])])

    const paths = treeCata(pathFolder)(tree)
    // [['A', 'B'], ['A', 'C', 'D'], ['A', 'C', 'E']]