Prolog. Change elements in a list

前端 未结 0 780
北恋
北恋 2020-12-05 03:27

I need to change the items in the list like this:

?- change(a,[b,c,d],X).
X = [(a,b), (a,c), (a,d)].

Please let me know how to proceed with i

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