Companion

object Companion

Functions

Link copied to clipboard
inline fun <TGen : Any> fromString(maps: Map<Char, TGen>, default: TGen, code: String, marginChar: Char = '\u0000'): Array2<TGen>
Link copied to clipboard
inline operator fun <TGen : Any> invoke(rows: List<List<TGen>>): Array2<TGen>
inline operator fun <TGen : Any> invoke(width: Int, height: Int, fill: TGen): Array2<TGen>
inline operator fun <TGen : Any> invoke(width: Int, height: Int, gen: (n: Int) -> TGen): Array2<TGen>
inline operator fun <TGen : Any> invoke(map: String, default: TGen, transform: Map<Char, TGen>): Array2<TGen>
inline operator fun <TGen : Any> invoke(map: String, marginChar: Char = '\u0000', gen: (char: Char, x: Int, y: Int) -> TGen): Array2<TGen>
Link copied to clipboard
inline fun <TGen : Any> withGen(width: Int, height: Int, gen: (x: Int, y: Int) -> TGen): Array2<TGen>