map
ABSTRACT
Applies a function to each element in the input vector
PARAMETERS
| v | the vector to which we want to apply the function to |
| f(x) | the function take takes in an element of v and spits out the mapped value |
RETURN
a vector of the same length as v, but each element x in v is replaced with f(x)
DECLARATION
func map(v, f(x))