working wire cutter (drops no wire)

This commit is contained in:
minjaesong
2021-09-18 21:01:06 +09:00
parent 097689f49f
commit 9e8bd5e4a9
8 changed files with 27 additions and 15 deletions

View File

@@ -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)