RosettaCodeData/Task/String-concatenation/REXX/string-concatenation.rexx
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

9 lines
349 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 doublepipe does not cause spaces */