Skip to content

Instantly share code, notes, and snippets.

@jaydonnell
jaydonnell / gist:997325
Created May 28, 2011 23:06 — forked from swannodette/gist:997140
type-inf.clj
(ns logic.y
(:refer-clojure :exclude [== reify inc])
(:use [clojure.core.logic minikanren prelude nonrel match]))
(defna findo [x l o]
([_ [[?y '- o] . ?r] _] (project [x ?y] (== (= x ?y) true)))
([_ [_ . ?c] _] (findo x ?c o)))
(defn typedo [c x t]
(conda