For Programmers: Free Programming Magazines  


Home > Archive > Prolog > July 2004 > Re: Little problem please help









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Little problem please help
Nick Wedd

2004-07-04, 3:56 pm

In message <1088842817.633312@seven.kulnet.kuleuven.ac.be>, bart demoen
<bmd@cs.kuleuven.ac.be> writes
>Magellan wrote:
>
>A predicate with just one clause and with a recursive call cannot
>succeed - but that's not the only thing wrong with the program.


Well, I've tested it now, and it worked. There is another clause for
sublist/2, further back in Magellan's posting, and quoted in mine. It
reads
sublist([],X).

It didn't work when Magellan tested it because he was using it wrong.

Nick
--
Nick Wedd nick@maproom.co.uk
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com