All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.chestmc.common.extensions.collections.Lists.kt Maven / Gradle / Ivy

package net.chestmc.common.extensions.collections

/**
 * Creates a new empty mutable list.
 */
fun  emptyMutableList(): MutableList = mutableListOf()

/**
 * Creates a new mutable list with the specified elements.
 */
fun  newMutableList(vararg elements: T): MutableList = mutableListOf(*elements)

/**
 * Creates a new list with the specified elements.
 */
fun  newList(vararg elements: T): List = listOf(*elements)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy