title: How to replace the nodes of a tree by the respective depths - OCaml
body: <p>I am new to OCaml, and am trying to figure out a way to replace all nodes in a tree by their depth. I think I'll have to construct a new tree. Can anyone help?</p>