mapmaker.utils.treelist module

class mapmaker.utils.treelist.TreeList(iterable=(), /)[source]

Bases: list

A tree structure implemented as a list with branches (sub-trees) being embedded lists.

flatten(skip=0)[source]

Return leaves of the tree as a list in depth-first order.