Hi Jim, On Feb 25, 6:38 pm, jim <[email protected]> wrote: > I've just uploaded a file that has the Mini-Kanren logic programming > system described in "The Reasoned Schemer" implemented in idiomatic > Clojure. The file is: > > http://clojure.googlegroups.com/web/mini_kanren.clj > I'm still reading my way through it, but so far, this caught my eye:
"In Scheme, passing cons one parameter encloses that parameter in a list, essentially cons'ing it to an empty list" As far as I know, no Scheme implementation does that. a cons is strictly a pair of two things, where the idiomatic usage is that the second thing is either another cons or the empty list, thus forming a proper list, versus a list terminated by a dotted pair, which is an improper list. (list x), in both Scheme and Clojure, produces a list with one item in it. Regards, -- Michel S. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
