How to I resolve this type error in my Prolog code for generating the Collatz Sequence?

前端 未结 0 1708
一生所求
一生所求 2020-12-15 22:50

I am learning Prolog, specifically GNU Prolog, for fun. I thought an interesting challenge would be to generate a sequence of Collatz numbers given a seed, which here is 5.

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