Documentation
¶
Index ¶
- func FromFunc[V any, T comparable](vv iter.Seq[V], f func(v V) T) dryad.Set[T]
- func FromKeys[K comparable, V any](m map[K]V) dryad.Set[K]
- func MapToOrd[T comparable, S cmp.Ordered](src dryad.Set[T], f func(T) S) dryad.Set[S]
- func New[T comparable](vv ...T) dryad.Set[T]
- func ToMap[K comparable, V any](set dryad.Set[K], v V) map[K]V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromFunc ¶
FromFunc constructs a new set by applying the given function to each value in the given slice and collecting its return values in the new set.
func FromKeys ¶
func FromKeys[K comparable, V any](m map[K]V) dryad.Set[K]
FromKeys constructs a new set using the keys of a map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.