In Mu§
See primary documentation in context for method return
method return()
The method return
will stop execution of a subroutine or method, run all relevant phasers and provide invocant as a return value to the caller. If a return type constraint is provided it will be checked unless the return value is Nil
. A control exception is raised and can be caught with CONTROL.
sub f ;say f(); # OUTPUT: «any(1, 2, 3)»