Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!cmcl2!lanl!opus!eiverson From: eiverson@nmsu.edu (Eric Iverson) Newsgroups: comp.lang.prolog Subject: Re: general PROLOG questions Message-ID: Date: 11 Dec 89 22:35:28 GMT References: <5631@uhccux.uhcc.hawaii.edu> <2898@munnari.oz.au> <793@fs1.ee.ubc.ca> <10231@alice.UUCP> <808@fs1.ee.ubc.ca> Sender: news@nmsu.edu Organization: NMSU Computer Science Lines: 15 In-reply-to: vincel@fs0.ee.ubc.ca's message of 11 Dec 89 04:50:14 GMT Hey, what's wrong with this as a solution? nth0(Num,List,Item):- append(X,[Item|_],List), length(X,Num). Of course the obvious answer is why bother, since it's in the library. -- ------------------------------------------------------------------------ Another Gruntpig production, in association with the Rat Lab Steamworks. Bigamy is defined as having one wife too many. Monogamy is defined the same way. -Oscar Wilde