Skip to content

Formats some string.

Example usage:

spectre
val stdio = use("std/stdio")

pub fn main() void = trust {
    val hello: ref u8 = "hello world"
    val fmt_string: ref u8 = @fmt("{d} {d} {s}", {12, 14, hello})
    stdio.print("{s}", {fmt_string})
}