add more style
This commit is contained in:
@ -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])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user