Insert element after every element in list in Prolog

后端 未结 0 1960
野性不改
野性不改 2020-12-01 10:21

I want to write a predicate that will insert a given element after every element in a list and will print resulting list.

For example: my list is [1,2,3,4,5]

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