I have just begun to write OCaml code lately hence this might be a naive question.But i could not figure this out myself.
I have the following type declaration in OCaml.
type myType =
| Int of int
Now i have an object of type myType.
Is there a way to access the value of int that this object holds? If yes, how?