For Programmers: Free Programming Magazines  


Home > Archive > Prolog > March 2004 > String+String cancatenation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author String+String cancatenation
Linux Man

2004-03-27, 12:11 am

How to cancatenate two string values?
I'm using SWI-Prolog
george

2004-03-27, 12:11 am


"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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com