RosettaCodeData/Task/String-concatenation/REXX/string-concatenation.rexx
2023-07-01 13:44:08 -04:00

9 lines
352 B
Rexx

s = "hello"
say s "literal"
t = s "literal" /*whitespace between the two strings causes a space in the output.*/
say t
/*the above method works without spaces too.*/
genus= "straw"
say genus"berry" /*this outputs strawberry.*/
say genus || "berry" /*concatenation using a double-pipe does not cause spaces.*/