我试图找出在 prolog 中找到查询答案的哪种方式更快。
例如,如果
employee('John',23).
rule2('John', 'Likes to play basketball').
如果快于:
employee('John', '23').
rule2(employee('John,_),'Likes to play basketball').
我试图找出在 prolog 中找到查询答案的哪种方式更快。
例如,如果
employee('John',23).
rule2('John', 'Likes to play basketball').
如果快于:
employee('John', '23').
rule2(employee('John,_),'Likes to play basketball').