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:
parent
cb33717fb9
commit
25f29c328c
@ -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 matrix’s element type.
|
||||
struct Matrix<A> {
|
||||
init(width: Int, height: Int, compute: (Int, Int) -> A) {
|
||||
var values: [Memo<A>] = []
|
||||
|
Loading…
Reference in New Issue
Block a user