Functions
Link copied to clipboard
fun <Element> KoneMutableList.Companion.fill(size: UInt, element: Element): KoneMutableList<Element>
Link copied to clipboard
inline fun <Element> KoneMutableList.Companion.generate(size: UInt, initializer: (index: UInt) -> Element): KoneMutableList<Element>
Returns a mutable list of provided size of elements produced by the initializer.
inline fun <Element> KoneMutableList.Companion.generate(indices: UIntRange, initializer: (index: UInt) -> Element): KoneMutableList<Element>
Returns a mutable list of elements over the provided indices range produced by the initializer.
Link copied to clipboard
inline fun <Element> KoneMutableList.Companion.induce(size: UInt, initialElement: Element, inducer: (index: UInt, previous: Element) -> Element): KoneMutableList<Element>
Returns a mutable list of provided size where each next element is computed from the previous one.
inline fun <Element> KoneMutableList.Companion.induce(indices: UIntRange, initialElement: Element, inducer: (index: UInt, previous: Element) -> Element): KoneMutableList<Element>
Returns a mutable 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 mutable list.
Returns a mutable list containing the given elements.