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

Reply via email to