std/prelude
std/prelude re-exports common functions and types from multiple std modules.
Re-exported modules
Section titled “Re-exported modules”The prelude pulls in APIs from:
std/iostd/stringstd/processstd/fsstd/pathstd/errorstd/mathstd/convert
Example signatures
Section titled “Example signatures”std/prelude re-exports functions such as:
println(s: String) VoidprintInt(i: Int) Voidcwd() Stringjoin(a: String, b: String) StringtoString(x: Int) StringExample
Section titled “Example”import "std/prelude" { println, printInt, cwd, join };
fun main() Int { println(cwd()); println(join("/tmp", "zap.txt")); printInt(42); return 0;}