From ... From: Erik Naggum Subject: Re: recursive function that returns true/false (newbie stuff) Date: 1998/01/26 Message-ID: <3094767813890115@naggum.no>#1/1 X-Deja-AN: 319246925 References: <6aei0l$7ko$1@newsreader.wustl.edu> <3094699721088415@naggum.no> <6ag9t5$oql$1@newsreader.wustl.edu> <3094764034583296@naggum.no> mail-copies-to: never Organization: Naggum Software; +47 8800 8879; http://www.naggum.no Newsgroups: comp.lang.lisp * Kevin Goodier | Efficiently is not a concern for this particular problem, but one thing | that could help would be to check if the list length is odd. If so, it | isn't a palindrome. * Erik Naggum | a palindrome is a word (or phrase) that reads the same either way. I forgot that the point of that sentence was to say "it makes no difference whether something that reads the same both ways has odd or even length". in other words, "v", "eve", "level", etc, are all palindromatic. you code actually catches it, but rather inefficiently, which is why I suggested that you might need to detect it. see for yourself what it does with a singleton list... #:Erik -- The year "98" was new 1900 years ago. | Help fight MULE in GNU Emacs 20! Be year 2000 compliant, write "1998"! | http://sourcery.naggum.no/emacs/