I am trying to do a recursion proc in mozart oz, is there a way I can exit the proc or function when I get my answer so that the rest recursion will not continue.
Asked
Active
Viewed 69 times
1 Answers
0
You could use an exception for that.
But usually, the recursive call is at the end of a function anyway. Just returning will automatically go up the stack.

wmeyer
- 3,426
- 1
- 18
- 26
-
is there a return or something in oz, in proc you usually do not return anything, which is why I am asking about how to end the proc – Haotian Song Dec 02 '17 at 01:26