2024-12-31 00:54:58 +01:00
|
|
|
mod std;
|
2024-12-26 02:38:32 +01:00
|
|
|
|
|
|
|
fn main() {
|
2024-12-31 00:54:58 +01:00
|
|
|
let strings = std::array_new::<string>();
|
|
|
|
std::array_push(strings, "hello");
|
|
|
|
std::array_push(strings, "world");
|
2024-12-26 02:38:32 +01:00
|
|
|
|
2024-12-31 00:54:58 +01:00
|
|
|
let ints = std::array_new::<int>();
|
|
|
|
std::array_push(ints, 1);
|
|
|
|
std::array_push(ints, 2);
|
2024-12-26 05:20:33 +01:00
|
|
|
|
|
|
|
for v in strings {
|
2024-12-31 00:54:58 +01:00
|
|
|
std::println(v)
|
2024-12-26 05:20:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
for v in ints {
|
2024-12-31 00:54:58 +01:00
|
|
|
std::println(std::itos(v))
|
2024-12-26 05:20:33 +01:00
|
|
|
}
|
2024-12-26 02:38:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|