mini-kanren what is the difference between cond-a cond-u and cond-e?

后端 未结 2 677
野性不改
野性不改 2021-01-14 01:21

I have tried to use an implementation of mini-kanren in clojure. But been struggling to understand the difference between cond-a cond-u and cond-e. I seem to be quite clear

相关标签:
2条回答
  • 2021-01-14 01:41

    cond-e gives every answer from all branches that succeed

    cond-i gives every answer but interleaves them.

    cond-a only gives the answers from the first successful branch

    cond-u only gives the first answer from the first successful branch

    0 讨论(0)
  • 2021-01-14 01:52

    I was just trying to get my head around these matters. There's a shortified scheme implementation Sokuza-kanren with a few comments, I'll read it tonight.

    0 讨论(0)
提交回复
热议问题