Prolog - Generate Unique Symbol -


in prolog, aware of gensym predicate:

gensym(g, x). x = g1. gensym(g, x). x = g2. gensym(g, x). x = g3. 

but docs say: "note no guarantee atom unique in system."

i looking predicate exactly, if gensymming new symbol, not match 1 used in same program.


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -