Prolog Query - Trying to understand how this result happens
问题 So I'm trying to figure out some stuff from Prolog, but I'm not sure WHY I'm getting the result that I'm getting. Given this definition: families(_, Smith, lucy, _, jeff, Smith). and this query: ?- families(Ford, nancy, Ford, jeff, Smith, White). Why is this the result?: Ford = lucy, Smith = jeff, White = nancy. Thank you! 回答1: (A note: no need to leave spaces after the opening and before the closing parenthesis. Also, if this is homework, you should say so.) The definition of families/6 ,