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
Post a Comment