Package-level declarations

Types

Link copied to clipboard
typealias Matrix<T> = List<Row<T>>

Represents a matrix as a list of rows, where each row is a list of elements. This is essentially a 2D structure represented as List<List<T>>.

Link copied to clipboard
open class MatrixBuilder<T>
Link copied to clipboard
typealias Row<T> = List<T>

Represents a single row in a matrix as a list of elements.

Link copied to clipboard
open class RowBuilder<T>

Functions

Link copied to clipboard
fun <T> RowBuilder<T>.columns(elements: List<T>)
fun <T> RowBuilder<T>.columns(vararg elements: T)
Link copied to clipboard
fun <T> flatMatrix(block: RowBuilder<T>.() -> Unit): Matrix<T>

Creates a single-row matrix using a DSL-style builder.

fun <T> flatMatrix(vararg elements: T): Matrix<T>

Creates a single-row matrix from the provided elements.

Link copied to clipboard
fun <T> matrix(block: MatrixBuilder<T>.() -> Unit): Matrix<T>

Creates a matrix using a DSL-style builder. Allows defining multiple rows using the MatrixBuilder API.

Link copied to clipboard
fun <T> row(block: RowBuilder<T>.() -> Unit): List<T>
Link copied to clipboard
fun <T> MatrixBuilder<T>.row(block: RowBuilder<T>.() -> Unit): Boolean
fun <T> MatrixBuilder<T>.row(vararg elements: T): Boolean