I am new to Ocaml and I have a question about pattern matching in Ocaml. If I have the following type definition:
type t = False | True | Function (t -> t)
How can I match a term that is Function (t -> t)? So far the only thing I can do is match Function f. But is there any way to match the argument to the function? Ideally it'd be nice to have something like
match t with
| Function (t1 -> t2) -> ...
| ...
But apparently it is not the correct syntax. Is it even possible?