We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#trace on recursive function should display recursive calls.
let rec somme (x:int) : int = if x>0 then x + (somme (x-1) else x ;; #trace somme (somme 4) ;;
Should display somme <-- 4 somme <-- 3 somme <-- 2 somme <-- 1 somme <-- 0 somme --> 0 somme --> 1 somme --> 3 somme --> 6 somme --> 10
But only displays somme is now traced
The text was updated successfully, but these errors were encountered:
No branches or pull requests
#trace on recursive function should display recursive calls.
let rec somme (x:int) : int = if x>0 then x + (somme (x-1) else x ;;
#trace somme
(somme 4) ;;
Should display
somme <-- 4
somme <-- 3
somme <-- 2
somme <-- 1
somme <-- 0
somme --> 0
somme --> 1
somme --> 3
somme --> 6
somme --> 10
But only displays
somme is now traced
The text was updated successfully, but these errors were encountered: