return
- Sometimes we want a function to terminate prematurely during a debugging
session.
- For example:
- A function computes a variable's value wrongly.
- We found this, but still want to debug the rest of the program.
- we can force the function to return immediately with the correct
value:
return 59
Originally written by
guy keren