You have to be careful when using Clojure or Java operations in core.logic programs. I would recommend avoiding it until you're comfortable with writing pure core.logic programs.
On Monday, August 6, 2012, Jim - FooBar(); wrote: > caution! logic noob question following...why does the following fail? can > anyone help with this? the stack trace is not very helpful! > > > (defn bishop-moves [x y] > (let [xmax 8 ymax 8] > (run* [q] > (fresh [a b] > (< a xmax) > (< b ymax) > (= (Math/abs (- x a)) > (Math/abs (- y b))) > (== q [a b]))))) > > thanks in advance, > > Jim > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/**group/clojure?hl=en<http://groups.google.com/group/clojure?hl=en> > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en