Passing and returning arrays

BlitzMax Forums/BlitzMax Programming/Passing and returning arrays

Hi, so far in BMax I haven't used arrays much (I have plenty in other languages) but now I'm wondering what the various syntaxs are for the following:

1) passing an array into a function. i.e. how to call the function and how to declare the function. I assume an array will be passed as a variable automatically without me having to put "var" after it?
2) returning a new array from a function. i.e. is this even possible, like say I declare an array of a certain size (or no size?) and I call a function and assign the return value, which is an array, to the array that I declared.

Maybe I should just stick to TLists ;-)

Thanks for any help.