Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!news.duke.edu!convex!cs.utexas.edu!utnut!nott!cunews!freenet.carleton.ca!FreeNet.Carleton.CA!ai120
From: ai120@FreeNet.Carleton.CA (Michael Chung)
Subject: help need.
Message-ID: <CyIF4G.1JD@freenet.carleton.ca>
Sender: news@freenet.carleton.ca (Usenet News Admin)
Reply-To: ai120@FreeNet.Carleton.CA (Michael Chung)
Organization: The National Capital FreeNet
Date: Sun, 30 Oct 1994 23:41:04 GMT
Lines: 9


Can someone tell me how to define a predicate height(X,Y) which
returns the maximum number,Y, of nested lists in X. X could be
a multi-level list.

Thanks for the email.
 
--

