YAP 7.1.0
atomic_list_concat/3

atomic_list_concat(? As,+ Separator,? A) More...

Detailed Description

atomic_list_concat(? As,+ Separator,? A)

Creates an atom just like atomic_list_concat/2 , but inserts Separator between each pair of atoms For example:

?- atomic_list_concat([gnu, gnat], `, `, A).
A = `gnu, gnat`
atomic_list_concat(? As,+ Separator,? A)

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]
atomic_list_concat(+ As,? A)

The documentation for this class was generated from the following file: