code: def translate_array(trans_vec,vec_array):
  
      '''translate_array(trans_vec,vec_array) -> vec_array
  
      Adds 'mult'*'trans_vec' to each element in vec_array, and returns
      the translated vector.
      '''
  
      return map ( lambda x,m=trans_vec:add(m,x),vec_array f translate_array(trans_vec,vec_array):
  
      '''translate_array(trans_vec,vec_array) -> vec_array
  
      Adds 'mult'*'trans_vec' to each element in vec_array, and returns
      the translated vector.
      '''
  
      return map ( lambda x,m=trans_vec:add(m,x),vec_array )
docs: translate_array(trans_vec,vec_array) -> vec_array
  
      Adds 'mult'*'trans_vec' to each element in vec_array, and returns
      the translated vector.