String Concatenation
rascal-0.40.17
Synopsis
Concatenate two strings.
Syntax
Exp₁ + Exp₂
Types
Exp₁ | Exp₂ | Exp₁ + Exp₂ |
---|---|---|
str | str | str |
Description
Concatenates the string values of Exp₁ and Exp₂.
Note that to concatenate other types of values into a string, you can use String interpolation.
Examples
rascal>"abc" + "def";
str: "abcdef"
---
abcdef
---