How to exam every 3 consecutive items of a list in prolog

前端 未结 0 1753
迷失自我
迷失自我 2020-11-27 18:05

I have a list in prolog like this: [a,b,c,d,e].

Then the idea is to exam every 3 items like [a,b,c]; do something with a and c, then store b. The same goes for [b,c,d

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