Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasSubset ¶
func HasSubset[T constraints.Ordered](a, b []T) bool
HasSubset return true if b is a subset of a. a and b MUST BE sorted in ascending order.
Types ¶
type Set ¶
type Set[T constraints.Ordered] struct { // contains filtered or unexported fields }
func NewSet ¶
func NewSet[T constraints.Ordered](v ...T) *Set[T]
Click to show internal directories.
Click to hide internal directories.