add more style

This commit is contained in:
Aleksandr Trushkin
2024-01-05 23:03:15 +03:00
parent fbe9927ac3
commit 48f5d80f7a
10 changed files with 415 additions and 134 deletions

View File

@ -9,3 +9,9 @@ func Map[S any, E any](s []S, f func(S) E) []E {
return out
}
func ForEach[S any](s []S, f func(S)) {
for i := range s {
f(s[i])
}
}