View Subcategory

Define a string containing special characters

Define the literal string "\#{'}${"}/"
fantom
special := Str<|\#{'}${"}/|>

Define a multiline string

Define the string:
"This
Is
A
Multiline
String"
fantom
s := "This
Is
A
Multiline
String"

Define a string containing variables and expressions

Given variables a=3 and b=4 output "3+4=7"
fantom
echo("$a+$b=${a+b}")