mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-21 21:24:59 -07:00
14 lines
173 B
Odin
14 lines
173 B
Odin
#import "fmt.odin";
|
|
|
|
main :: proc() {
|
|
foo :: proc() -> [dynamic]int {
|
|
x: [dynamic]int;
|
|
append(^x, 2, 3, 5, 7);
|
|
return x;
|
|
}
|
|
|
|
for p in foo() {
|
|
fmt.println(p);
|
|
}
|
|
}
|