generic_func.go

Go전문가

탐색기

C40
C++40
C#40
Dart40
Go
초급10
중급10
고급10
전문가5
context_cancel.go
generic_func.go
worker_pool.go
sync_once.go
embed_interface.go
마스터5
Java40
JavaScript40
Kotlin40
Objective-C40
Perl40
PHP40
Python40
R40
Ruby40
Rust40
Shell40
Swift40
TypeScript40
generic_func.go
Click to focus
1
2
3
4
5
6
7
func Map[T, U any](slice []T, fn func(T) U) []U {
   result := make([]U, len(slice))
   for i, v := range slice {
       result[i] = fn(v)
   }
   return result
}
0WPM0%0:000/162(0%)|Ln 1, Col 1
UTF-8Go

관련 연습 문제