# arrayLiteral

inline fun <T : Any> arrayLiteral(value: List<T>, delegateType: ColumnType<T>? = null): LiteralOp<List<T>>

Returns the specified value as an array literal, with elements parsed by the delegateType if provided.

Note If delegateType is left `null`, the associated column type will be resolved according to the internal mapping of the element's type in resolveColumnType.

#### Throws

IllegalStateException

If no column type mapping is found and a delegateType is not provided.

inline fun <T : Any, R : List<Any>> arrayLiteral(value: R, dimensions: Int, delegateType: ColumnType<T>? = null): LiteralOp<R>

Returns the specified value as an array literal, with elements parsed by the delegateType if provided.

Note If delegateType is left `null`, the associated column type will be resolved according to the internal mapping of the element's type in resolveColumnType.

Note: Because arrays can have varying dimensions, you must specify the type of elements and the number of dimensions when using array literals. For example, use `arrayLiteral<Int, List<List<Int>>>(list, dimensions = 2)`.

#### Throws

IllegalStateException

If no column type mapping is found and a delegateType is not provided.