bumped up golang version to 1.23

This commit is contained in:
2025-06-22 19:35:57 +02:00
parent efc99a9658
commit cc2ead6c4e
11 changed files with 68 additions and 30 deletions

View File

@ -2,7 +2,7 @@ package slices
func Reverse[T any](slice []T) []T {
s := make([]T, len(slice))
for i := 0; i < len(slice); i++ {
for i := range slice {
ri := len(slice) - 1 - i
s[ri] = slice[i]
}