Menu

not predicate

Help
2011-09-28
2013-03-28
  • Ricky Valentine Oswald

    Hello all,
    I'm learning prolog from a book based around LPA prolog and it has mentioned the predicate 'not'.  I cannot find the gprolog alternative to this in the documentation.
    It operates as such

    |  ?- car(toyota).
    yes
    |  ?- not(car(toyota)).
    no
    |  ?- not car(toyota)).
    no
    |  ?-
    

    What is this predicate in GNU prolog?

     
    • Daniel Diaz

      Daniel Diaz - 2013-03-28

      not/1 is not an ISO predicate. Use + instead.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.