]> Repositorios git - scryer-prolog.git/commitdiff
use atom_concat in gensym.pl
authorMark Thom <[email protected]>
Thu, 23 Jan 2020 05:08:42 +0000 (22:08 -0700)
committerMark Thom <[email protected]>
Thu, 23 Jan 2020 05:08:42 +0000 (22:08 -0700)
src/prolog/lib/gensym.pl

index 98d8bcde4a9a7ac555f04ee5f11bd1e1e209474c..27c34f9957ffd14072da88794dfbcbe93e86b59c 100644 (file)
@@ -7,10 +7,7 @@
 :- use_module(library(si)).
 
 gensym_key(Base, BaseKey) :-
-    atom_chars('gensym_', PrefixChars),
-    atom_chars(Base, BaseChars),
-    append(PrefixChars, BaseChars, BaseKeyChars),
-    atom_chars(BaseKey, BaseKeyChars).
+    atom_concat('gensym_', Base, BaseKey).
 
 append_id(Base, UniqueID, Unique) :-
     atom_chars(Base, BaseChars),