withGen

inline fun withGen(width: Int, height: Int, gen: (x: Int, y: Int) -> Int): IntArray2