Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 377d2b71fb
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.397 kb
/**
* Pure 2D declaration + allocation, printing.
*/
main: func {
array := Int[2][3] new()
for(i in 0..array length) {
for(j in 0..array[i] length) {
array[i][j] = i * array length + j
}
}
for(i in 0..array length) {
for(j in 0..array[i] length) {
printf("%d ", array[i][j])
}
println()
}
}
Jump to Line
Something went wrong with that request. Please try again.