Help me with prolog

From: Char (coalchamber_at_NOPUBBLICITAinwind.it)
Date: 03/06/05


Date: Sun, 6 Mar 2005 10:02:17 +0100

Hi,
I am a student from university of Palermo (Italy) and I have some problem
with the prolog.

If I have a list of literal [a,b,c,d], how do I create a new list where I
add +4 (or - 4) ( or anotrher number) at the list of departure and I create
the list [e,f,g,h] ?
How I create a list of literal circular?
How I replace a list of literal with a number (ex: se I have the list
[a,b,c,d] and I want replace only some the atom ( a with 2, c with 5 and
leave b and d to their place)) ??

Thank you for the help.

Charles



Relevant Pages

  • Re: i am a prolog beginner pls help me in getting this
    ... is more like giving a student a Prolog compiler and tell them to learn ... Prolog, without introducing proper theory and without stating clear goals. ... Successful operation of Prolog Inference Engine (PIE) requires certain language skills ... Prolog reinforces the development of the language skills that are required for its successful operation. ...
    (comp.lang.prolog)
  • Re: i am a prolog beginner pls help me in getting this
    ... This way of assigning problems, it seems to me, falls into the ... Just giving a student such a problem would be called `problem-guided ... student has been listening to a lecture and/or read a book explaining ... Prolog, without introducing proper theory and without stating clear goals. ...
    (comp.lang.prolog)
  • Re: Converting between relations and properties of objects
    ... If I can ask Prolog, ... What I want to do is to run the query: describe ann. ... ann student, ann smokes. ...
    (comp.lang.prolog)
  • Re: compiling pl-5.6.29 on win2000 using mingw32(msys)
    ... student writes: ... (I much prefer to run Prolog from a command prompt.) ...
    (comp.lang.prolog)