Do not restrict function to vectors