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']] Copy
const tree = make('A', [of('B'), make('C', [of('D', 'E')])])const paths = treeCata(pathFolder)(tree)// [['A', 'B'], ['A', 'C', 'D'], ['A', 'C', 'E']]
Collect all leaf paths from a tree at a level. For example: