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

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

jquery - ReferenceError: CKEDITOR is not defined -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -