David Nolen <dnolen.li...@gmail.com> writes: Hi David,
> As Mark said you can avoid the graph issue with tabling. core.logic > has tabling. If you look at the tabling section here - > https://github.com/clojure/core.logic, you should see something > related to your problem. Thanks, I'll have a look. > If you do then you should probably just write you own goals that can > source data from your graph. This can easily be done by returning a > Choice from your custom goal. > > (defn custom-goal [x y z] > ... > (choice a (fn [] ...)) > > choice is like a lazy sequence, you have your first value, and then a > thunk to produce the remainder of the sequence. You can do whatever > you want in the body of the custom-goal to make sure the optimal > resultset is operated on. Great, that looks exactly what I need. Bye, Tassilo -- (What the world needs (I think) is not (a Lisp (with fewer parentheses)) but (an English (with more.))) Brian Hayes, http://tinyurl.com/3y9l2kf -- 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