Return

return expression

The return keyword causes an unconditional exit from the current function, returning a value given by the following expression. The actual global value of the FISH symbol representing the function will not change, but the calling object will receive the return value.

The return keyword is the preferred method of returning a value from a FISH operator, but can be used in normal FISH functions as well.

The following are examples of the return statement:

return 0
return a+b
return fred + math.pi