How to check if two elements of nested lists are the same index in Prolog?

前端 未结 0 1985
情深已故
情深已故 2020-12-14 05:55

I want to create a predicate same_position(B,X,Y) that is true if element X and element Y have the same position within their respective nested lists.

For example,

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