elements

fun elements(elements: List<TomlElement>, annotations: List<List<Annotation>> = List(elements.size) { emptyList() })(source)

Adds elements and their annotations to this array.

The order of these two lists corresponds. If annotations is shorter than elements, the rest slots will be filled with empty list; if the former is longer, the extra ones will be discarded.