// //fn print(msg: string) #[builtin(Print)] {} //fn println(msg: string) { print(msg + "\n") } // //fn itos(number: int) -> string #[builtin(IntToString)] {} // //fn array_new() -> [T] #[builtin(ArrayNew)] {} //fn array_push(array: [T], value: T) #[builtin(ArrayPush)] {} //fn array_length(array: [T]) -> int #[builtin(ArrayLength)] {} //fn array_at(array: [T], index: int) -> T #[builtin(ArrayAt)] {} fn main() { let strings = array_new::(); array_push(strings, "hello"); array_push(strings, "world"); let ints = array_new::(); array_push(ints, 1); array_push(ints, 2); for v in strings { println(v) } for v in ints { println(itos(v)) } }