Focused this in iRacing so that I don't need to worry about some stuff for now

This commit is contained in:
2025-01-26 21:49:51 +00:00
parent c302123070
commit dbea7e7475
7 changed files with 235 additions and 224 deletions
+11
View File
@@ -0,0 +1,11 @@
package main
func findEntry[T any](s []T, predicate func(T) bool) int {
for i, elem := range s {
if predicate(elem) {
return i
}
}
return -1
}