mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 06:24:06 +09:00
bytearray64reader wip
This commit is contained in:
@@ -627,4 +627,6 @@ interface Id_UICanvasNullable {
|
||||
// haskell-inspired array selectors
|
||||
// head and last use first() and last()
|
||||
fun <T> Array<T>.tail() = this.sliceArray(1 until this.size)
|
||||
fun <T> Array<T>.init() = this.sliceArray(0 until this.lastIndex)
|
||||
fun <T> Array<T>.init() = this.sliceArray(0 until this.lastIndex)
|
||||
fun <T> List<T>.tail() = this.subList(1, this.size)
|
||||
fun <T> List<T>.init() = this.subList(0, this.lastIndex)
|
||||
Reference in New Issue
Block a user