1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 11:02:26 +03:00

Append, don’t subscript.

Subscripting only replaces, never appends.
This commit is contained in:
Rob Rix 2015-10-06 13:29:43 -04:00
parent a9349c33dc
commit 6c8ce1bcb2

View File

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