title: Can we define types inside a function in OCaml?
body: <p>I'm new to OCaml. I want to define a type that is used in one function only. I don't want to make it available outside that function. Can we define it inside that function? Or is there some other way to achieve the same?</p>