fancy error printing done

This commit is contained in:
alexander.nutz
2024-03-29 12:21:09 +01:00
parent 355289716b
commit 19414c084c
12 changed files with 439 additions and 31 deletions

View File

@@ -0,0 +1,17 @@
package blitz.collections
fun <T> List<T>.inBounds(index: Int): Boolean {
if (index >= size)
return false
if (index < 0)
return false
return true
}
fun <T> Vec<T>.inBounds(index: Int): Boolean {
if (index >= size)
return false
if (index < 0)
return false
return true
}