Combines function parameters into an array