Skip to main content

Strings

src/strings.duck
fn main() {
const a = "s"; // <- strings are immutable utf-8 text
const b = [1, 2, 3].to_string(); // <- use the to_string method to convert values to strings
const c = f"a = {}, b = {b}"; // <- use format strings to easily combine multiple strings
}