Documentation ¶
Index ¶
- Constants
- Variables
- func FilterSlice[T any](a []T, f func(T) bool) []T
- func FindFirstInSlice[T any](a []T, f func(T) bool) *T
- func GetIntSlice() []int
- func MapSlice[T any, M any](a []T, f func(T) M) []M
- func NewHashMap[K immutable.SetElement, T any]() *hashmap.Map[K, T]
- func NewHashSet[K immutable.SetElement]() *hashset.Set[K]
- func PutIntSlice(v []int)
- func Reduce[T, M any](s []T, f func(M, T) M, initValue M) M
- func SliceToBoolMap[T comparable](s []T) map[T]bool
- func SliceToSet[K immutable.SetElement](s []K) immutable.Set[K]
- func SliceToSetOfSets[K immutable.SetElement](s []K) immutable.Set[immutable.Set[K]]
- type AndOrSet
- func (set AndOrSet) Difference(a AndOrSet) AndOrSet
- func (set AndOrSet) Each(fn func(key immutable.Set[Category]))
- func (set AndOrSet) Equals(element immutable.SetElement) bool
- func (set AndOrSet) GetHash() uint64
- func (set AndOrSet) Size() int
- func (set AndOrSet) ToHashSet() hashset.Set[immutable.Set[Category]]
- func (set AndOrSet) ToSlice() []immutable.Set[Category]
- func (set AndOrSet) ToSlices() [][]Category
- func (set AndOrSet) Union(a AndOrSet) AndOrSet
- type AppContext
- type Category
- type ErrorLog
- type Mask
Constants ¶
View Source
const MaxCategory = Category(1000000000)
View Source
const MaxIntSliceCapacity = 20
View Source
const MinCategory = Category(0)
Variables ¶
Functions ¶
func FilterSlice ¶
func FindFirstInSlice ¶
func GetIntSlice ¶
func GetIntSlice() []int
func NewHashMap ¶
func NewHashMap[K immutable.SetElement, T any]() *hashmap.Map[K, T]
func NewHashSet ¶
func NewHashSet[K immutable.SetElement]() *hashset.Set[K]
func PutIntSlice ¶
func PutIntSlice(v []int)
func SliceToBoolMap ¶
func SliceToBoolMap[T comparable](s []T) map[T]bool
func SliceToSet ¶
func SliceToSet[K immutable.SetElement](s []K) immutable.Set[K]
func SliceToSetOfSets ¶
Types ¶
type AppContext ¶
type AppContext struct {
// contains filtered or unexported fields
}
func NewAppContext ¶
func NewAppContext() *AppContext
func (*AppContext) GetError ¶
func (ctx *AppContext) GetError(index int) error
func (*AppContext) LogError ¶
func (ctx *AppContext) LogError(err error) error
func (*AppContext) NewError ¶
func (ctx *AppContext) NewError(err string) error
func (*AppContext) NumErrors ¶
func (ctx *AppContext) NumErrors() int
func (*AppContext) PrintErrors ¶
func (ctx *AppContext) PrintErrors()
type ErrorLog ¶
type ErrorLog struct {
// contains filtered or unexported fields
}
func (*ErrorLog) PrintErrors ¶
func (errLog *ErrorLog) PrintErrors()
Click to show internal directories.
Click to hide internal directories.