Splicing two arrays together

BlitzMax Forums/BlitzMax Programming/Splicing two arrays together

here it is:

Function ccRemoveStringArraySlots:String[](array$[], StartSlot%, EndSlot%)
	'Slots passed in should be zero-based.
	'Smaller array is returned.
	Local temp$[] = array[0..StartSlot] 'first get the first chunk (note that array slicing is 1-based)
	'Grow temp by the correct size.
	temp = temp[0..(Len(temp)+(Len(array)-endslot))-1]
	
	'Now loop through the remainder of the array
	Local addto = StartSlot
	For Local i=EndSlot+1 To Len(array)-1
		temp$[addto] = array[i]
		addto:+1
	Next	
	
	Return temp
End Function


Now I can write a similar concatenation function although I'm not sure I need it any longer.