mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
17 lines
399 B
Text
17 lines
399 B
Text
[
|
|
// Two parts, no inner fragment.
|
|
f"Interpolated string: {"hello, world"}",
|
|
|
|
// Three parts, one inner fragment.
|
|
f"Begin {"hole1"} inner {"hole2"} end.",
|
|
|
|
// With integers, booleans, and null inside.
|
|
f"Bool: {not false}, integer: {21 + 21}, null: {null}",
|
|
]
|
|
|
|
# output:
|
|
[
|
|
"Interpolated string: hello, world",
|
|
"Begin hole1 inner hole2 end.",
|
|
"Bool: true, integer: 42, null: null"
|
|
]
|