code: def transform(fields, function, *tables):
      "Return a new table based on other tables and a transformation function"
  
      new_table = Table(fields=fields)
  
      for table in tables:
          for row in filter(bool, map(lambda row: function(row, table), table)):
              new_table.append(row)
  
      return new_tablf transform(fields, function, *tables):
      "Return a new table based on other tables and a transformation function"
  
      new_table = Table(fields=fields)
  
      for table in tables:
          for row in filter(bool, map(lambda row: function(row, table), table)):
              new_table.append(row)
  
      return new_table
docs: Return a new table based on other tables and a transformation function