code: def equalize_list_lengths(a,b):
      
      if not _s.fun.is_iterable(a): a = [a]
      a = list(a)
      while len(a)>len(b): a.pop(-1)
      while len(a)<len(b): a.append(a[-1])
      return a
docs: Modifies the length of list a to match b. Returns a. 
      a can also not be a list (will convert it to one).
      a will not be modified.