Don't Care in Prolog -
 Is there a way to tell the prolol that any element in the list can be of value? I tried to use  _  but it was not working I am trying to compare zero and two lists, but in some places I do not care about value, for example : I have the  _  element on  [1,1,1] == [1,1, _]  true  
Instead use the following:
< Code> [1,1,1] = [1,1, _]
  == / 2  similar The test for T, which is stronger than  = / 2  (which instantiates). 
Comments
Post a Comment