Array with User-Defined Function

I am trying to learn how to use an array to return several numbers at once from a user defined function.

Functions can return a single value. They can not return an array.

You can pass the array to store the results in to the function, though.