Values are returned by using the optional return statement. Any type may be returned, including lists and objects.
You can't return multiple values from a function, but similar results can be obtained by returning a list.
To return a reference from a function, you have to use the reference operator & in both the function declaration and when assigning the returned value to a variable:
HIVE: All information for read only. Please respect copyright! |