user1311390
user1311390

Reputation:

Clojure, core.logic, mini-kanren: eqo vs ==

I'm aware of: https://github.com/clojure/core.logic/wiki/Differences-from-The-Reasoned-Schemer

Context

mini-kanren code:

(run* (q)
  (eqo pear plum)
  (== #t q))

core.logic code

(run* [q]
  (== pear plum)
  (== true q))

This produces the result (), which is the correct answer.

Question:

Is eqo and == the same, or did I just lucky in the above example? Thanks!

Upvotes: 1

Views: 226

Answers (1)

dnolen
dnolen

Reputation: 18556

I remember correctly eqo just calls ==

Upvotes: 1

Related Questions