code: def flat_map(iterable, func):
      
      results = []
      for element in iterable:
          result = func(element)
          if len(result) > 0:
              results.extend(result)
      return results
docs: func must take an item and return an interable that contains that
      item. this is flatmap in the classic mode