prolog single quote (') unification -
i'm trying unify variable x '*' (including quote marks, total of 3-symbol string) i'm doing simple x='*'.
, results in x having value *
. if go x=''*''.
, result x=''*''
. i'm confused, how can achieve '*'
?
if want string, should use double-quotes:
x="'*'".
if want make symbol, can use
atom_codes( x, "'*'" ).
Comments
Post a Comment