mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
17 lines
336 B
Go
17 lines
336 B
Go
package set
|
|
|
|
import "github.com/luxfi/math/set"
|
|
|
|
// Re-export set types from math package
|
|
type Set[T comparable] = set.Set[T]
|
|
|
|
// Of creates a new set
|
|
func Of[T comparable](elements ...T) Set[T] {
|
|
return set.Of(elements...)
|
|
}
|
|
|
|
// NewSet creates a new empty set
|
|
func NewSet[T comparable](size int) Set[T] {
|
|
return make(Set[T], size)
|
|
}
|