Companion

Functions

Link copied to clipboard

Builds a KoneNoddedList using the provided builderAction DSL.

inline fun <Element> KoneNoddedList.Companion.build(initialCapacity: UInt, builderAction: KoneNoddedListBuilder<Element>.() -> Unit): KoneNoddedList<Element>

Builds a KoneNoddedList with the given initialCapacity using the provided builderAction DSL.

Link copied to clipboard

Returns empty nodded list.

Link copied to clipboard

Returns a nodded list of provided size filled with the given element.

Link copied to clipboard
inline fun <Element> KoneNoddedList.Companion.generate(size: UInt, initializer: (index: UInt) -> Element): KoneNoddedList<Element>

Returns a nodded list of provided size of elements produced by the initializer.

inline fun <Element> KoneNoddedList.Companion.generate(indices: UIntRange, initializer: (index: UInt) -> Element): KoneNoddedList<Element>

Returns a nodded list of elements over the provided indices range produced by the initializer.

Link copied to clipboard
inline fun <Element> KoneNoddedList.Companion.induce(size: UInt, initialElement: Element, inducer: (index: UInt, previous: Element) -> Element): KoneNoddedList<Element>

Returns a nodded list of provided size where each next element is computed from the previous one.

inline fun <Element> KoneNoddedList.Companion.induce(indices: UIntRange, initialElement: Element, inducer: (index: UInt, previous: Element) -> Element): KoneNoddedList<Element>

Returns a nodded list of elements over the provided indices range where each next element is computed from the previous one.

Link copied to clipboard

Returns an empty nodded list.

Returns a singleton nodded list containing the given element.

Returns a nodded list containing the given elements.