On Wed, Oct 31, 2012 at 12:00 AM, Anthony Rosequist < anthony.rosequ...@gmail.com> wrote:
> I updated my gist with a solution that's working: > > https://gist.github.com/3981557 > > Unfortunately, I had to copy my conde expression 3 times (to cover all > combinations of the three tasks). So, what I really need to know is if > there's a way for me to write those three condes as one goal that takes q > as an input and supports an arbitrary number of tasks? Or would this > strategy not be performant enough with more than 3 or 4 tasks? > With that kind repetition we can suspect it can be done more generally :) I recommend examining the distincto goal that comes with core.logic. I believe the "shape" of the solution will be almost identical to it. For simplicity I would make a goal that does what those three conde's do in recursive fashion. Once you have that working you can decide whether to just merge that into time-intervaslo. David -- 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