Tree.fold