1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 17:59:10 +03:00

Insert in row-major order.

This commit is contained in:
Rob Rix 2015-10-06 14:11:26 -04:00
parent e178745c56
commit d12c95e296

View File

@ -8,8 +8,8 @@ public struct Matrix<A> {
var values: [Memo<A>] = []
values.reserveCapacity(width * height)
for i in 0..<width {
for j in 0..<height {
for j in 0..<height {
for i in 0..<width {
values.append(Memo<A> { compute(i, j) })
}
}