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, _] back to 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

Popular posts from this blog

c# - Highlight all words containing a letter in a richtextbox -

Admob interstitials not clickable on Nexus 5 (Android 4.4.2) -

java - MigLayout - selective component fill -