Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get keyword from a list

Status
Not open for further replies.

progjava

Programmer
Apr 26, 2006
1
GB
hi all,

i am having problems getting a particular keyword off a list in prolog. i have a list that contains for example [java,is,platform,independent]. I want to be able to search this list for the keyword independent and pass it to a variable X.

I am doing this by spliting the list but its inperfect.

I wont mind searching the list for a noun or a verb and then extracting that but i guess the first option is better.

Cheers
 
Hello. I do not understand well. Please explain a little in more detail.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top