blob: ea47e0f56d9cb15997a98e16c36a654e4b7773cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import gleam/io
import gleam/string
pub fn main() {
// String literals
io.debug("👩💻 こんにちは Gleam 🏳️🌈")
io.debug(
"multi
line
string",
)
io.debug("\u{1F600}")
// Double quote can be escaped
io.println("\"X\" marks the spot")
// String concatenation
io.debug("One " <> "Two")
// String functions
io.debug(string.reverse("1 2 3 4 5"))
io.debug(string.append("abc", "def"))
}
|