IntArray2

data class IntArray2(val width: Int, val height: Int, val data: IntArray) : IArray2<Int>

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, data: IntArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val height: Int
Link copied to clipboard
open val size: Int
Link copied to clipboard
open override val width: Int

Functions

Link copied to clipboard
fun <T> Iterable<T>.associateByInt(block: (index: Int, value: T) -> Int): IntMap<T>
Link copied to clipboard
open fun asString(): String
open fun asString(margin: String = "", charMap: (Int) -> Char): String
open fun asString(map: Map<Int, Char>, margin: String = ""): String
Link copied to clipboard
fun Iterable<MRectangle>.bounds(target: MRectangle = MRectangle()): MRectangle
fun Iterable<MPoint>.bounds(out: MRectangle = MRectangle(), bb: MBoundsBuilder = MBoundsBuilder()): MRectangle
Link copied to clipboard
Link copied to clipboard
open operator fun contains(v: Int): Boolean
Link copied to clipboard
open fun dump()
Link copied to clipboard
inline fun <E> IArray2<E>.each(callback: (x: Int, y: Int, v: E) -> Unit)
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun equalsAt(idx: Int, value: Int): Boolean
Link copied to clipboard
inline fun <E> IArray2<E>.fill(gen: (old: E) -> E)
Link copied to clipboard
operator fun get(x: Int, y: Int): Int
Link copied to clipboard
open fun getAt(x: Int, y: Int): Int
open override fun getAt(idx: Int): Int
Link copied to clipboard
Link copied to clipboard
open fun getPositionsWithValue(value: Int): List<Pair<Int, Int>>
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun <E> IArray2<E>.index(x: Int, y: Int): Int
Link copied to clipboard
open fun inside(x: Int, y: Int): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<Int>
Link copied to clipboard
inline fun <TGen : Any, RGen : Any> IArray2<TGen>.map2(gen: (x: Int, y: Int, v: TGen) -> RGen): Array2<RGen>
inline fun IntArray2.map2(gen: (x: Int, y: Int, v: Int) -> Int): IntArray2
Link copied to clipboard
inline fun <T> Iterable<T>.mapDouble(callback: (T) -> Double): DoubleArrayList
Link copied to clipboard
inline fun <T> Iterable<T>.mapFloat(callback: (T) -> Float): FloatArrayList
Link copied to clipboard
inline fun <T> Iterable<T>.mapInt(callback: (T) -> Int): IntArrayList
Link copied to clipboard
fun <T> Iterable<T>.multisorted(vararg props: KProperty1<T, Comparable<*>>): List<T>
Link copied to clipboard
open fun printAt(x: Int, y: Int)
open override fun printAt(idx: Int)
Link copied to clipboard
open fun set(rows: List<List<Int>>)
operator fun set(x: Int, y: Int, value: Int)
Link copied to clipboard
open fun setAt(x: Int, y: Int, value: Int)
open override fun setAt(idx: Int, value: Int)
Link copied to clipboard
@JvmName(name = "sumOfFloat")
inline fun <T> Iterable<T>.sumOfDouble(selector: (T) -> Double): Double
Link copied to clipboard
@JvmName(name = "sumOfFloat")
inline fun <T> Iterable<T>.sumOfFloat(selector: (T) -> Float): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun toStringList(charMap: (Int) -> Char, margin: String = ""): List<String>
Link copied to clipboard
fun tryGet(x: Int, y: Int): Int?
Link copied to clipboard
fun trySet(x: Int, y: Int, value: Int)