Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the diet rule, we need to find all the ingredients that a certain recipe has and then input them into a new function we shall create below diet, called ‘ingredientsMeetDiet’. This function should return a diet should work if the list of ingredients that fit of the inputted RecipeID fits the dietary restriction . This list should be returned with the name inputted DietaryRestriction.

Code Block
ingredientsMeetDiet([ Ingredient | Rest ], DietaryRestriction) :-

...