Is there a way to get ocaml to tell me if a function implements a recursion using tail recursion? I don't mean reading the code. I mean getting ocaml to tell me, say like this:
let x = tail_recursion f;;
Is there a way to get ocaml to tell me if a function implements a recursion using tail recursion? I don't mean reading the code. I mean getting ocaml to tell me, say like this:
let x = tail_recursion f;;
You can compile your source code with '-annot'. It will produce an annotation file, that some editors can use.
In caml-mode (emacs) the command ist:
M-x caml-types-show-call