Code Comments
Programming Forum and web based access to our favorite programming groups.How to cancatenate two string values? I'm using SWI-Prolog
Post Follow-up to this message
"Linux Man" <steven_82m@hotmail.com> wrote in message
news:150a16c6.0403230559.521917d0@posting.google.com...
> How to cancatenate two string values?
> I'm using SWI-Prolog
>
% ~~~~~
?- atom_concat('ab', 'cd', X).
X = abcd
%~~~~~
?- append("ab", "cd", Y), atom_codes(X, Y).
Y = [97, 98, 99, 100]
X = abcd
%~~~~
Read the SWI-Prolog reference manual carefully.
--- Georgios
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.