Type-checks and runs in your browser. Nothing is sent to a server.
single file
import std.io
functiongreet(name: string) ->string {
return"Hello, {name}!"
}
io.writeLine(greet("Topaz"))
let nums = [1, 2, 3, 4]
let total = nums.reduce(0, (a, b) => a + b)
io.writeLine("sum = {total}")