Possible to pass an array to a function?

BlitzMax Forums/BlitzMax Beginners Area/Possible to pass an array to a function?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Strict

Local myArray:Int[] = [0, 1, 2, 3, 4, 5]

TimesTen(myArray)

For Local n = EachIn myArray
	Print n
Next

End

Function TimesTen(array:Int[])
	For Local n = 0 Until array.length
		array[n] :* 10
	Next
End Function
??