1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

Document Matrix a little.

This commit is contained in:
Rob Rix 2015-10-06 12:19:59 -04:00
parent cb33717fb9
commit 25f29c328c

View File

@ -1,3 +1,6 @@
/// A two-dimensional matrix of memoized values.
///
/// These values are populated by a function from the coordinates of a given cell to the matrixs element type.
struct Matrix<A> {
init(width: Int, height: Int, compute: (Int, Int) -> A) {
var values: [Memo<A>] = []