mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-09 01:54:04 +09:00
working wire cutter (drops no wire)
This commit is contained in:
@@ -130,6 +130,14 @@ class SortedArrayList<T: Comparable<T>>(initialSize: Int = 10) : MutableCollecti
|
||||
override inline fun forEach(action: Consumer<in T>?) = arrayList.forEach(action)
|
||||
inline fun forEachIndexed(action: (Int, T) -> Unit) = arrayList.forEachIndexed(action)
|
||||
|
||||
fun cloneToList(): List<T> {
|
||||
val ret = ArrayList<T>()
|
||||
forEach {
|
||||
ret.add(it)
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
|
||||
inline fun <reified R> map(transformation: (T) -> R) = arrayList.map(transformation)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user