NEWBIE QUESTION: List Searching

From: FirewallVictim (catazy_at_hotmail.com)
Date: 04/28/04


Date: 28 Apr 2004 09:51:42 -0700

Im after a little bit of help. Im new to prolog and I'm trying to
find an element within a prolog list. I can find the element if it is
at the beginning of the list but can't figure out how to find it
anywhere within the list. For example [ok,lets,quit].

quitprog([quit|_]) :-
        write('QUIT'),nl,!.

Any help/advice is much appreciated. Thanks in advance.