Permalink
Browse files

added simple core.logic matching example

  • Loading branch information...
1 parent b7a6fae commit 243826827b8dea27527328e82f15b8dae54cf191 @bostonaholic committed May 6, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/matching.clj
View
@@ -0,0 +1,10 @@
+(ns matching
+ (:refer-clojure :exclude [==])
+ (:use [clojure.core.logic]
+ [clojure.tools.macro :as macro]))
+
+(defne is-one-two [x y]
+ ([_ 2]))
+
+(defn one-twoo [x y]
+ (is-one-two x y))

0 comments on commit 2438268

Please sign in to comment.