@ -112,7 +112,7 @@ struct Matrix {
|
|||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
assert(indexIsValidForRow(row, column: column), "Index out of range")
|
assert(indexIsValidForRow(row, column: column), "Index out of range")
|
||||||
grid[(row * columns) + columns] = newValue
|
grid[(row * columns) + column] = newValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user