R/return keyword



The
R
/
return
statement ends function execution and specifies a value to be returned to the function caller.

This code defines a function sum, which returns a sum of its arguments:
F sum(a, b)
   R a + b

The
R
/
return
statement can be used to return early from the function:
F f(a)
   if (a == 0)
      R
   ...