next up previous contents
Next: Specify Unevaluated Up: Programming Tools and Functions Previous: Delay Evaluation

Return

Calling Sequence:
return(obj)
Parameters:
obj : anything

Returns: anything

Synopsis: The return function causes Darwin to immediately exit a procedure and return obj to the point of calling.

Examples:

> sum_up := proc(x)
>   total := 0: 
>   for i from 1 to x do total := total + i od;
>   return(total);
> end;




Gaston Gonnet
1998-09-15