mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-29 16:13:47 +00:00
* Revert "Event based pprof (#732)"
This reverts commit 22fa4033e8.
* params: update version to 0.3.4-beta3
* packaging/templates: update bor version
11 lines
169 B
Go
11 lines
169 B
Go
package set
|
|
|
|
func New[T comparable](slice []T) map[T]struct{} {
|
|
m := make(map[T]struct{}, len(slice))
|
|
|
|
for _, el := range slice {
|
|
m[el] = struct{}{}
|
|
}
|
|
|
|
return m
|
|
}
|