atomic_list_concat/4¶
atomic_list_concat(? As,+ Separator,? A)*
Creates an atom just like atomic_list_concat//22, but inserts Separator between each pair of atoms. For example:
?- atomic_list_concat([gnu, gnat], `, `, A).
A = `gnu, gnat`
YAP emulates the SWI-Prolog version of this predicate that can also be used to split atoms by instantiating Separator and Atom as shown below.
?- atomic_list_concat(L, -, 'gnu-gnat').
L = [gnu, gnat]