asTree

fun <Input, Node> List<Input>.asTree(range: Input.() -> TextRange, node: (Input, List<Node>) -> Node): List<Node>