# Package-level declarations

## Types

Matrix
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>>`.

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

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

RowBuilder
Link copied to clipboard
open class RowBuilder < T >

## Functions

columns
Link copied to clipboard
fun < T > RowBuilder < T >. columns (elements: List < T >)
fun < T > RowBuilder < T >. columns (vararg elements: T )
flatMatrix
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.

matrix
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.

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