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

php - mySQL problems with this code? -

java - Checkbox item adds to spinner -

java - Can't access ArrayList in other view? android null pointer exception -