You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
342 B

// Raw wrapper around _printf builtin function.
// Writes the given content to stdout
fn print(msg) {
_printf(msg)
}
// Like print(), but with an extra newline ('\n') character
fn println(msg) {
print(msg + "\n")
}
// Prints the size of an array
fn len(arr) {
let c = 0
while arr[c] {
c = c + 1
}
return c
}