Newsgroups: comp.lang.lisp
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!gatech!news.mathworks.com!news.kei.com!nntp.coast.net!news00.sunet.se!sunic!news99.sunet.se!liuida!news
From: Jonas Kvist <c93jonkv@und.ida.liu.se>
Subject: Re: stuck......
X-Nntp-Posting-Host: su1-6.ida.liu.se
Content-Type: text/plain; charset=us-ascii
Message-ID: <3120E199.3EFC@und.ida.liu.se>
Sender: news@ida.liu.se
Content-Transfer-Encoding: 7bit
Organization: Dept. of Computer and Information Science, Linkoping University
References: <general.4.00A84ABA@dan.microserve.com>
Mime-Version: 1.0
Date: Tue, 13 Feb 1996 19:08:09 GMT
X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
Lines: 15

general@dan.microserve.com wrote:
> 
> I am in a slight need of help...I need a LISP program that recursively finds
> the max number of a list...ex (MAXNUM '(1 2 3 15 1)
>                         should return 15
> when I compare an atom to the rest of the list I get NIL not a float
>                 (cond   ((.......
>                         (((>(car a)(maxnum (cdr a))) 'a)
>                         ........)
> HELP

If this is authentic code, you should take a look at where to place
parentheses and quotes.

/Jonas
