here's my solution: https://gist.github.com/3766508
the original (done in 2 hours) solution is commented out. i made some improvements and solved the whole thing in 39 lines (counting only the content of "main"). doing it in the minimal amount of lines was not my goal. i was trying to minimize the logic. shorter code was just a side effect. try to beat it :). let's see how that looks in clojure. Am 20.09.2012 19:30, schrieb David Nolen: > On Thu, Sep 20, 2012 at 1:19 PM, Jules <julesjac...@gmail.com > <mailto:julesjac...@gmail.com>> wrote: > > This problem would be ideally suited for core.logic except because > of the "hint" > (http://page.mi.fu-berlin.de/prechelt/phonecode/hint2.html) you'd > need to do something far more ugly. > > > The solution I came up with doesn't attempt to encode the entire > solution in core.logic. Also I admit the solution I came up with was a > response to Odersky's neat version for the Scala Days 2011 Keynote and > not the original problem. > > 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 -- -- 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