How to do only 2 recursive calls in Prolog?

前端 未结 0 1877
挽巷
挽巷 2020-12-13 13:54
isTallerThan2(X,Y) :- tallerThan(X,Y).
isTallerThan2(X,Y) :- tallerThan(X,Z), isTallerThan2(Z,Y).

Where I want to find where someone is taller than

相关标签:
回答
  • 消灭零回复
提交回复
热议问题