toTree

fun <F : Flat, L : Leaf<L>> Iterable<F>.toTree(root: L, toLeaf: (F) -> L): L