@term & @term

This string operator can be used to concatenate two strings, i.e. create a single string that consists of appending the left operand string with the right operand string.

see also: delete/3 expand_sq/1 insert/3 is/2 replace/3 substring/3 string_list/2 to_lower/1 to_prolog/1 to_string/1 to_string/2 to_upper/1 trim/1 triml/1 trimr/1 working with strings

Examples
X is_string "hello " & "world". X = "hello world"
X is_string 'hi' & ' everybody'. X = 'hi 'everybody'

 

 

info@trinc-prolog.com