Question about Prolog matching -


i'm brand new prolog , i'm trying match along lines of this:

rule(blah variable, ...).

basically i'm trying match atom "blah" followed expression. possible?

if using swi can use atom_concat/3:

rule(x, ....):-   atom_concat(blah, y, x),    ... 

e.g.: suppose x=blahsomethingelse atom_concat(blah, y, x) instantiate y somethingelse. note atom_concat works atoms.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -