import std.io function greet(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}")
프로그램을 실행하면 출력이 여기에 나타납니다.