This is a Higher Order Function used to apply a function to a given list. map :: (a->b) -> [a] -> [b]