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

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -