Edgars
12/08/2019, 11:50 AMEdgars
12/08/2019, 11:59 AM(0 until 25*6)) and taking the first non-2 from the layers works twice as fast, give or take, but isn't all that readable.karelpeeters
12/08/2019, 12:00 PMasString, very neat. You could replace fold with joinStoString I think.Edgars
12/08/2019, 12:05 PMasString() is an extension I wrote. 🙂
fun List<Char>.asString(): String = joinToString(separator = "")Edgars
12/08/2019, 12:05 PMEdgars
12/08/2019, 12:06 PMjoinToString() isn't any faster, but more readable, I'd say. 🙂karelpeeters
12/08/2019, 12:07 PM