A question about list
"赵阳" <[email protected]>
| Newsgroups | gmane.comp.gnu.prolog.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, all:
I am a beginner in GNU prolog and now encounter a problem. Given a list that has been instantiated, I want to get its first element and assign its value to a variable. How can I do it? I have tried nth(1, List, Var), but it does not help. Could any body tell me?
Zhao,Yang
2006-10-24
_______________________________________________
Users-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/users-prolog