On Tue, May 31, 2011 at 1:02 PM, Ambrose Bonnaire-Sergeant <
abonnaireserge...@gmail.com> wrote:

> user=> (run 2 [q]
>             (exist [x y z]
>                    (conde
>                      ((== (x y z x) q))
>                      ((== (z y x z) q)))))
>

You have to take note of the formatting conventions - as with the Little
Schemer the source presented is an idealized Scheme, not one you can just
type in.

(run 2 [q]
   (exist [x y z]
     (conde
       ((== [x y z x] q))
       ((== [z y x z] q)))))

Should work.

-- 
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