prolog - Can smb explain why this is **true** -


can smb explain why true?

not(g). not(g) :- g, !, fail. 

it true because first clause reads:

not(_). 

the code got there weird. name not not quite fit obvious declarative meaning.


Comments

Popular posts from this blog

java - Checkbox item adds to spinner -

php - mySQL problems with this code? -

C# MVC AngularJS -