It seems to me that there is some connection between vectors and functions. Namely, I have seen that the dot product can be defined for both, Schwarzs inequality also comes in both forms (although this is just an extension of the previous as one method of its derivation is through the dot product of think). You can talk about linearity for both; I am aware of linear transformations represented by matrices that act on vectors, and then linear differential equations for functions. You can build up linear combinations of both vectors and functions...
When I tried to look this up, I found some sources suggesting that functions are subset of vectors. Although I am still finding this very confusing.