dense bool maps that are shaped like minecraft chunks for no reason at all

This commit is contained in:
alexander.nutz
2024-08-02 10:14:34 +02:00
parent aca62fd413
commit 7b44c2ba00
12 changed files with 551 additions and 18 deletions

View File

@@ -27,4 +27,7 @@ fun <T> MutableList<T>.removeLastInto(count: Int, dest: MutableList<T> = mutable
}
fun <T> MutableList<T>.addFront(value: T) =
add(0, value)
add(0, value)
fun <T: Any> Iterable<T?>.countNotNull() =
count { it != null }