feat: initial commit

This commit is contained in:
2023-04-24 19:53:37 +02:00
commit 6854557831
13 changed files with 701 additions and 0 deletions

7
util/reverse.go Normal file
View File

@ -0,0 +1,7 @@
package util
func Reverse[S ~[]E, E any](s S) {
for i, j := 0, len(s)-1; i < j; i, j = i+1, j-1 {
s[i], s[j] = s[j], s[i]
}
}