I don't have a Scheme here to check it out, but doesn't (cons 1)
yield '(1) or am I wrong? In either case how could it be stated more accurately/clearly? Thanks Jim On Feb 26, 7:52 am, "Michel S." <michel.syl...@gmail.com> wrote: > Hi Jim, > > "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 clojure@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---