Text concatenation
We can use the #
sign to concatenate values of type Text
.
let t1 : Text = "Motoko";
let t2 : Text = "Programming";
let result : Text = t1 # " " # t2;
In the last line we concatenate the two Text
variables t1
and t2
with a text literal " "
representing a space.