elenco-albero (hackage): convert a flat list of nodes with optional parents to a (usually: if any nodes are assigned to parents) shorter list of nodes with nested children. Possible application: tree-like menu in web apps.
Keywords: library|public-domain|tree