mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-06-01 23:45:28 +00:00
11 lines
265 B
Kotlin
11 lines
265 B
Kotlin
package dev.inmo.micro_utils.matrix
|
|
|
|
class MatrixBuilder<T> {
|
|
private val mutMatrix: MutableList<List<T>> = ArrayList()
|
|
val matrix: Matrix<T>
|
|
get() = mutMatrix
|
|
|
|
fun add(t: List<T>) = mutMatrix.add(t)
|
|
operator fun plus(t: List<T>) = add(t)
|
|
}
|