NEWBIE QUESTION: List Searching
From: FirewallVictim (catazy_at_hotmail.com)
Date: 04/28/04
- Next message: Cesar Rabak: "Re: A simple (?) graph algorithm -- a nit pick"
- Previous message: Neil York Oliver: "3 input lists - 1 modified output list"
- Next in thread: Cesar Rabak: "Re: NEWBIE QUESTION: List Searching"
- Reply: Cesar Rabak: "Re: NEWBIE QUESTION: List Searching"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Cesar Rabak: "Re: A simple (?) graph algorithm -- a nit pick"
- Previous message: Neil York Oliver: "3 input lists - 1 modified output list"
- Next in thread: Cesar Rabak: "Re: NEWBIE QUESTION: List Searching"
- Reply: Cesar Rabak: "Re: NEWBIE QUESTION: List Searching"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]