build
inline fun <Element> KoneList.Companion.build(builderAction: KoneListBuilder<Element>.() -> Unit): KoneList<Element>(source)
Builds a KoneList using the provided builderAction DSL.
Return
The built list.
Parameters
builderAction
The builder DSL action.
Type Parameters
Element
The element type of the list.
inline fun <Element> KoneList.Companion.build(initialCapacity: UInt, builderAction: KoneListBuilder<Element>.() -> Unit): KoneList<Element>(source)
Builds a KoneList with the given initialCapacity using the provided builderAction DSL.
Return
The built list.
Parameters
initialCapacity
The initial capacity of the underlying storage.
builderAction
The builder DSL action.
Type Parameters
Element
The element type of the list.
inline fun <Element> KoneNoddedList.Companion.build(builderAction: KoneNoddedListBuilder<Element>.() -> Unit): KoneNoddedList<Element>(source)
Builds a KoneNoddedList using the provided builderAction DSL.
Return
The built list.
Parameters
builderAction
The builder DSL action.
Type Parameters
Element
The element type of the list.
inline fun <Element> KoneNoddedList.Companion.build(initialCapacity: UInt, builderAction: KoneNoddedListBuilder<Element>.() -> Unit): KoneNoddedList<Element>(source)
Builds a KoneNoddedList with the given initialCapacity using the provided builderAction DSL.
Return
The built list.
Parameters
initialCapacity
The initial capacity of the underlying storage.
builderAction
The builder DSL action.
Type Parameters
Element
The element type of the list.