array
fun TomlArrayBuilder.array(elementAnnotations: List<Annotation> = emptyList(), block: TomlArrayBuilder.() -> Unit)(source)
fun TomlArrayBuilder.array(vararg elementAnnotations: Annotation, block: TomlArrayBuilder.() -> Unit)(source)
Adds a TomlArray built with block to this array and annotates it with elementAnnotations.
fun TomlTableBuilder.array(key: Any?, elementAnnotations: List<Annotation> = emptyList(), block: TomlArrayBuilder.() -> Unit)(source)
fun TomlTableBuilder.array(key: Any?, vararg elementAnnotations: Annotation, block: TomlArrayBuilder.() -> Unit)(source)
Associates a TomlArray built with block with primitive key and annotates the array with elementAnnotations.
Throws
Non Primitive Key Exception
if provided non-primitive key.