Why not just wrap an array in a function and pass a float to that and do some internal processing.

Also: Default properties of classes can take floats as arguments (as well as anything else in fact.