Iteration over relations using a database
问题 I'm new to prolog. Consider the following format: carsCompany(Tel_Number, Manager, Company_Name, [new_cars(Car_Name,info(Color,Creator),Date_Creation)], [old_cars(Car_Name,info(Color,Creator),Date_Creation)] ]). I would like to create a two argument relation which gets a list of car names and a company and adds them to the company. update_company([Mazda],Company). I have the following db example: carsCompany(1234, Jujiro Matsuda, Mazda, [new_cars(mazda_3,info(Grey,Person1),26082016)], [old