Documentation ¶
Index ¶
- func CopyIterator[T any](it Iterator[*T]) (*sliceIterator[*T], error)
- func CopyMap[K comparable, V any](to map[K]V, from map[K]V)
- func Difference[V comparable](a, b []V) []V
- func Intersection[V comparable](a, b []V) []V
- func InverseMap[K comparable, V comparable](in map[K]V) map[V]K
- func Keys[K comparable, V any](m map[K]V) []K
- func NewEmptyIterator[K any]() *emptyIterator[K]
- func NewPermutatedIterator[T any](it Iterator[*T]) (*sliceIterator[*T], error)
- func NewSliceIterator[T any](items []T) *sliceIterator[T]
- func ReadAll[T any](it Iterator[*T]) ([]T, error)
- func ReadFirst[T any](it Iterator[*T], limit int) ([]T, error)
- func Remove[T comparable](items []T, toRemove T) ([]T, bool)
- func Repeat[T any](item T, times int) []T
- func RepeatValue[K comparable, V any](keys []K, val V) map[K]V
- func SubMap[K comparable, V any](m map[K]V, ks ...K) (map[K]V, []K)
- func Values[K comparable, V any](m map[K]V) []V
- type Iterator
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyIterator ¶
func CopyMap ¶
func CopyMap[K comparable, V any](to map[K]V, from map[K]V)
func Difference ¶
func Difference[V comparable](a, b []V) []V
func Intersection ¶
func Intersection[V comparable](a, b []V) []V
func InverseMap ¶
func InverseMap[K comparable, V comparable](in map[K]V) map[V]K
func Keys ¶
func Keys[K comparable, V any](m map[K]V) []K
func NewEmptyIterator ¶
func NewEmptyIterator[K any]() *emptyIterator[K]
func NewPermutatedIterator ¶
func NewSliceIterator ¶
func NewSliceIterator[T any](items []T) *sliceIterator[T]
func Remove ¶
func Remove[T comparable](items []T, toRemove T) ([]T, bool)
func RepeatValue ¶
func RepeatValue[K comparable, V any](keys []K, val V) map[K]V
func SubMap ¶
func SubMap[K comparable, V any](m map[K]V, ks ...K) (map[K]V, []K)
func Values ¶
func Values[K comparable, V any](m map[K]V) []V
Types ¶
Click to show internal directories.
Click to hide internal directories.