Documentation ¶
Index ¶
- type AA
- type Int
- type Int2
- type Int3
- type Int3Set
- func NewAscendingInt3Set(capacity int) *Int3Set
- func NewAscendingInt3SetFromSlice(items []int) *Int3Set
- func NewDescendingInt3Set(capacity int) *Int3Set
- func NewDescendingInt3SetFromSlice(items []int) *Int3Set
- func NewInt3Set(capacity int, cmp func(i, j int) bool) *Int3Set
- func NewInt3SetFromSlice(items []int, cmp func(i, j int) bool) *Int3Set
- func (set *Int3Set) All(f func(int) bool) bool
- func (set *Int3Set) Any(f func(int) bool) bool
- func (set *Int3Set) Append(keys ...int)
- func (set *Int3Set) Clear()
- func (set *Int3Set) Clone() *Int3Set
- func (set *Int3Set) Contains(key int) bool
- func (set *Int3Set) ContainsAll(keys ...int) bool
- func (set *Int3Set) ContainsAny(keys ...int) bool
- func (set *Int3Set) CountBy(f func(int) bool) int
- func (set *Int3Set) Difference(another *Int3Set) *Int3Set
- func (set *Int3Set) DoUntil(f func(int) bool) int
- func (set *Int3Set) DoUntilError(f func(int) error) error
- func (set *Int3Set) DoWhile(f func(int) bool) int
- func (set *Int3Set) Equal(another *Int3Set) bool
- func (set *Int3Set) Filter(f func(int) bool) *Int3Set
- func (set *Int3Set) FilterMap(f interface{}) interface{}
- func (set *Int3Set) FindBy(f func(int) bool) *int
- func (set *Int3Set) FindLastBy(f func(int) bool) *int
- func (set *Int3Set) Fold(init int, f func(int, int) int) int
- func (set *Int3Set) ForEach(f func(int))
- func (set *Int3Set) ForEachWithIndex(f func(int, int))
- func (set *Int3Set) GroupBy(f func(int) interface{}) map[interface{}]*Int3Set
- func (set *Int3Set) GroupByBool(f func(int) bool) (trueGroup *Int3Set, falseGroup *Int3Set)
- func (set *Int3Set) GroupByInt(f func(int) int) map[int]*Int3Set
- func (set *Int3Set) GroupByStr(f func(int) string) map[string]*Int3Set
- func (set *Int3Set) InPlaceUnion(another *Int3Set)
- func (set *Int3Set) Intersect(another *Int3Set) *Int3Set
- func (set *Int3Set) IsEmpty() bool
- func (set *Int3Set) IsProperSubsetOf(another *Int3Set) bool
- func (set *Int3Set) IsProperSupersetOf(another *Int3Set) bool
- func (set *Int3Set) IsSubsetOf(another *Int3Set) bool
- func (set *Int3Set) IsSupersetOf(another *Int3Set) bool
- func (set *Int3Set) Len() int
- func (set *Int3Set) Map(f interface{}) interface{}
- func (set Int3Set) MarshalJSON() ([]byte, error)
- func (set *Int3Set) Reduce(f func(int, int) int) int
- func (set *Int3Set) Remove(key int)
- func (set *Int3Set) String() string
- func (set *Int3Set) ToSlice() []int
- func (set *Int3Set) ToSliceRef() []int
- func (set *Int3Set) Union(another *Int3Set) *Int3Set
- func (set *Int3Set) UnmarshalJSON(b []byte) error
- type IntSet
- func (set *IntSet) All(f func(int) bool) bool
- func (set *IntSet) Any(f func(int) bool) bool
- func (set *IntSet) Append(keys ...int)
- func (set *IntSet) Clear()
- func (set *IntSet) Clone() *IntSet
- func (set *IntSet) Contains(key int) bool
- func (set *IntSet) ContainsAll(keys ...int) bool
- func (set *IntSet) ContainsAny(keys ...int) bool
- func (set *IntSet) CountBy(f func(int) bool) int
- func (set *IntSet) Difference(another *IntSet) *IntSet
- func (set *IntSet) DoUntilError(f func(int) error) error
- func (set *IntSet) Equal(another *IntSet) bool
- func (set *IntSet) Filter(f func(int) bool) *IntSet
- func (set *IntSet) FilterMap(f interface{}) interface{}
- func (set *IntSet) FindBy(f func(int) bool) *int
- func (set *IntSet) Fold(init int, f func(int, int) int) int
- func (set *IntSet) ForEach(f func(int))
- func (set *IntSet) GroupBy(f func(int) interface{}) map[interface{}]*IntSet
- func (set *IntSet) GroupByBool(f func(int) bool) (trueGroup *IntSet, falseGroup *IntSet)
- func (set *IntSet) GroupByInt(f func(int) int) map[int]*IntSet
- func (set *IntSet) GroupByStr(f func(int) string) map[string]*IntSet
- func (set *IntSet) InPlaceUnion(another *IntSet)
- func (set *IntSet) Intersect(another *IntSet) *IntSet
- func (set *IntSet) IsEmpty() bool
- func (set *IntSet) IsProperSubsetOf(another *IntSet) bool
- func (set *IntSet) IsProperSupersetOf(another *IntSet) bool
- func (set *IntSet) IsSubsetOf(another *IntSet) bool
- func (set *IntSet) IsSupersetOf(another *IntSet) bool
- func (set *IntSet) Len() int
- func (set *IntSet) Map(f interface{}) interface{}
- func (set IntSet) MarshalJSON() ([]byte, error)
- func (set *IntSet) Reduce(f func(int, int) int) int
- func (set *IntSet) Remove(key int)
- func (set *IntSet) String() string
- func (set *IntSet) ToSlice() []int
- func (set *IntSet) Union(another *IntSet) *IntSet
- func (set *IntSet) UnmarshalJSON(b []byte) error
- type IntSlice
- func (s *IntSlice) All(f func(int) bool) bool
- func (s *IntSlice) Any(f func(int) bool) bool
- func (s *IntSlice) Append(items ...int)
- func (s *IntSlice) Clear()
- func (s *IntSlice) Clone() *IntSlice
- func (s *IntSlice) Concat(another *IntSlice) *IntSlice
- func (s *IntSlice) Count(item int) uint
- func (s *IntSlice) CountBy(f func(int) bool) uint
- func (s *IntSlice) DoUntil(f func(int) bool) int
- func (s *IntSlice) DoUntilError(f func(int) error) error
- func (s *IntSlice) DoWhile(f func(int) bool) int
- func (s *IntSlice) Equal(another *IntSlice) bool
- func (s *IntSlice) Filter(f func(int) bool) *IntSlice
- func (s *IntSlice) FilterMap(f interface{}) interface{}
- func (s *IntSlice) Find(item int) int
- func (s *IntSlice) FindBy(f func(int) bool) int
- func (s *IntSlice) FindLast(item int) int
- func (s *IntSlice) FindLastBy(f func(int) bool) int
- func (s *IntSlice) Fold(init int, f func(int, int) int) int
- func (s *IntSlice) ForEach(f func(int))
- func (s *IntSlice) ForEachWithIndex(f func(int, int))
- func (s *IntSlice) GroupBy(f func(int) interface{}) map[interface{}]*IntSlice
- func (s *IntSlice) GroupByBool(f func(int) bool) (trueGroup, falseGroup *IntSlice)
- func (s IntSlice) GroupByInt(f func(int) int) map[int]*IntSlice
- func (s IntSlice) GroupByStr(f func(int) string) map[string]*IntSlice
- func (s *IntSlice) InPlaceConcat(another *IntSlice)
- func (s *IntSlice) Index(idx int) *int
- func (s *IntSlice) IndexFrom(idx int) *IntSlice
- func (s *IntSlice) IndexRange(from, to int) *IntSlice
- func (s *IntSlice) IndexTo(idx int) *IntSlice
- func (s *IntSlice) Insert(idx int, items ...int)
- func (s *IntSlice) IsEmpty() bool
- func (s *IntSlice) Len() int
- func (s *IntSlice) Map(f interface{}) interface{}
- func (s IntSlice) MarshalJSON() ([]byte, error)
- func (s *IntSlice) Reduce(f func(int, int) int) int
- func (s *IntSlice) Remove(idx int)
- func (s *IntSlice) RemoveFrom(idx int)
- func (s *IntSlice) RemoveRange(from, to int)
- func (s *IntSlice) RemoveTo(idx int)
- func (s *IntSlice) String() string
- func (s *IntSlice) ToSlice() []int
- func (s *IntSlice) ToSliceRef() []int
- func (s *IntSlice) UnmarshalJSON(b []byte) error
- type MyType
- type NotComparableType
- type NotComparableTypeSlice
- func (s *NotComparableTypeSlice) All(f func(NotComparableType) bool) bool
- func (s *NotComparableTypeSlice) Any(f func(NotComparableType) bool) bool
- func (s *NotComparableTypeSlice) Append(items ...NotComparableType)
- func (s *NotComparableTypeSlice) Clear()
- func (s *NotComparableTypeSlice) Clone() *NotComparableTypeSlice
- func (s *NotComparableTypeSlice) Concat(another *NotComparableTypeSlice) *NotComparableTypeSlice
- func (s *NotComparableTypeSlice) CountBy(f func(NotComparableType) bool) uint
- func (s *NotComparableTypeSlice) DoUntil(f func(NotComparableType) bool) int
- func (s *NotComparableTypeSlice) DoUntilError(f func(NotComparableType) error) error
- func (s *NotComparableTypeSlice) DoWhile(f func(NotComparableType) bool) int
- func (s *NotComparableTypeSlice) Filter(f func(NotComparableType) bool) *NotComparableTypeSlice
- func (s *NotComparableTypeSlice) FilterMap(f interface{}) interface{}
- func (s *NotComparableTypeSlice) FindBy(f func(NotComparableType) bool) int
- func (s *NotComparableTypeSlice) FindLastBy(f func(NotComparableType) bool) int
- func (s *NotComparableTypeSlice) Fold(init NotComparableType, ...) NotComparableType
- func (s *NotComparableTypeSlice) ForEach(f func(NotComparableType))
- func (s *NotComparableTypeSlice) ForEachWithIndex(f func(int, NotComparableType))
- func (s *NotComparableTypeSlice) GroupBy(f func(NotComparableType) interface{}) map[interface{}]*NotComparableTypeSlice
- func (s *NotComparableTypeSlice) GroupByBool(f func(NotComparableType) bool) (trueGroup, falseGroup *NotComparableTypeSlice)
- func (s NotComparableTypeSlice) GroupByInt(f func(NotComparableType) int) map[int]*NotComparableTypeSlice
- func (s NotComparableTypeSlice) GroupByStr(f func(NotComparableType) string) map[string]*NotComparableTypeSlice
- func (s *NotComparableTypeSlice) InPlaceConcat(another *NotComparableTypeSlice)
- func (s *NotComparableTypeSlice) Index(idx int) *NotComparableType
- func (s *NotComparableTypeSlice) IndexFrom(idx int) *NotComparableTypeSlice
- func (s *NotComparableTypeSlice) IndexRange(from, to int) *NotComparableTypeSlice
- func (s *NotComparableTypeSlice) IndexTo(idx int) *NotComparableTypeSlice
- func (s *NotComparableTypeSlice) Insert(idx int, items ...NotComparableType)
- func (s *NotComparableTypeSlice) IsEmpty() bool
- func (s *NotComparableTypeSlice) Len() int
- func (s *NotComparableTypeSlice) Map(f interface{}) interface{}
- func (s NotComparableTypeSlice) MarshalJSON() ([]byte, error)
- func (s *NotComparableTypeSlice) Reduce(f func(NotComparableType, NotComparableType) NotComparableType) NotComparableType
- func (s *NotComparableTypeSlice) Remove(idx int)
- func (s *NotComparableTypeSlice) RemoveFrom(idx int)
- func (s *NotComparableTypeSlice) RemoveRange(from, to int)
- func (s *NotComparableTypeSlice) RemoveTo(idx int)
- func (s *NotComparableTypeSlice) String() string
- func (s *NotComparableTypeSlice) ToSlice() []NotComparableType
- func (s *NotComparableTypeSlice) ToSliceRef() []NotComparableType
- func (s *NotComparableTypeSlice) UnmarshalJSON(b []byte) error
- type PSet
- func (set *PSet) All(f func(plugin.Plugin) bool) bool
- func (set *PSet) Any(f func(plugin.Plugin) bool) bool
- func (set *PSet) Append(keys ...plugin.Plugin)
- func (set *PSet) Clear()
- func (set *PSet) Clone() *PSet
- func (set *PSet) Contains(key plugin.Plugin) bool
- func (set *PSet) ContainsAll(keys ...plugin.Plugin) bool
- func (set *PSet) ContainsAny(keys ...plugin.Plugin) bool
- func (set *PSet) CountBy(f func(plugin.Plugin) bool) int
- func (set *PSet) Difference(another *PSet) *PSet
- func (set *PSet) DoUntilError(f func(plugin.Plugin) error) error
- func (set *PSet) Equal(another *PSet) bool
- func (set *PSet) Filter(f func(plugin.Plugin) bool) *PSet
- func (set *PSet) FilterMap(f interface{}) interface{}
- func (set *PSet) FindBy(f func(plugin.Plugin) bool) *plugin.Plugin
- func (set *PSet) Fold(init plugin.Plugin, f func(plugin.Plugin, plugin.Plugin) plugin.Plugin) plugin.Plugin
- func (set *PSet) ForEach(f func(plugin.Plugin))
- func (set *PSet) GroupBy(f func(plugin.Plugin) interface{}) map[interface{}]*PSet
- func (set *PSet) GroupByBool(f func(plugin.Plugin) bool) (trueGroup *PSet, falseGroup *PSet)
- func (set *PSet) GroupByInt(f func(plugin.Plugin) int) map[int]*PSet
- func (set *PSet) GroupByStr(f func(plugin.Plugin) string) map[string]*PSet
- func (set *PSet) InPlaceUnion(another *PSet)
- func (set *PSet) Intersect(another *PSet) *PSet
- func (set *PSet) IsEmpty() bool
- func (set *PSet) IsProperSubsetOf(another *PSet) bool
- func (set *PSet) IsProperSupersetOf(another *PSet) bool
- func (set *PSet) IsSubsetOf(another *PSet) bool
- func (set *PSet) IsSupersetOf(another *PSet) bool
- func (set *PSet) Len() int
- func (set *PSet) Map(f interface{}) interface{}
- func (set PSet) MarshalJSON() ([]byte, error)
- func (set *PSet) Reduce(f func(plugin.Plugin, plugin.Plugin) plugin.Plugin) plugin.Plugin
- func (set *PSet) Remove(key plugin.Plugin)
- func (set *PSet) String() string
- func (set *PSet) ToSlice() []plugin.Plugin
- func (set *PSet) Union(another *PSet) *PSet
- func (set *PSet) UnmarshalJSON(b []byte) error
- type S
- type SSet
- func NewAscendingSSet(capacity int) *SSet
- func NewAscendingSSetFromSlice(items []string) *SSet
- func NewDescendingSSet(capacity int) *SSet
- func NewDescendingSSetFromSlice(items []string) *SSet
- func NewSSet(capacity int, cmp func(i, j string) bool) *SSet
- func NewSSetFromSlice(items []string, cmp func(i, j string) bool) *SSet
- func (set *SSet) All(f func(string) bool) bool
- func (set *SSet) Any(f func(string) bool) bool
- func (set *SSet) Append(keys ...string)
- func (set *SSet) Clear()
- func (set *SSet) Clone() *SSet
- func (set *SSet) Contains(key string) bool
- func (set *SSet) ContainsAll(keys ...string) bool
- func (set *SSet) ContainsAny(keys ...string) bool
- func (set *SSet) CountBy(f func(string) bool) int
- func (set *SSet) Difference(another *SSet) *SSet
- func (set *SSet) DoUntil(f func(string) bool) int
- func (set *SSet) DoUntilError(f func(string) error) error
- func (set *SSet) DoWhile(f func(string) bool) int
- func (set *SSet) Equal(another *SSet) bool
- func (set *SSet) Filter(f func(string) bool) *SSet
- func (set *SSet) FilterMap(f interface{}) interface{}
- func (set *SSet) FindBy(f func(string) bool) *string
- func (set *SSet) FindLastBy(f func(string) bool) *string
- func (set *SSet) Fold(init string, f func(string, string) string) string
- func (set *SSet) ForEach(f func(string))
- func (set *SSet) ForEachWithIndex(f func(int, string))
- func (set *SSet) GroupBy(f func(string) interface{}) map[interface{}]*SSet
- func (set *SSet) GroupByBool(f func(string) bool) (trueGroup *SSet, falseGroup *SSet)
- func (set *SSet) GroupByInt(f func(string) int) map[int]*SSet
- func (set *SSet) GroupByStr(f func(string) string) map[string]*SSet
- func (set *SSet) InPlaceUnion(another *SSet)
- func (set *SSet) Intersect(another *SSet) *SSet
- func (set *SSet) IsEmpty() bool
- func (set *SSet) IsProperSubsetOf(another *SSet) bool
- func (set *SSet) IsProperSupersetOf(another *SSet) bool
- func (set *SSet) IsSubsetOf(another *SSet) bool
- func (set *SSet) IsSupersetOf(another *SSet) bool
- func (set *SSet) Len() int
- func (set *SSet) Map(f interface{}) interface{}
- func (set SSet) MarshalJSON() ([]byte, error)
- func (set *SSet) Reduce(f func(string, string) string) string
- func (set *SSet) Remove(key string)
- func (set *SSet) String() string
- func (set *SSet) ToSlice() []string
- func (set *SSet) ToSliceRef() []string
- func (set *SSet) Union(another *SSet) *SSet
- func (set *SSet) UnmarshalJSON(b []byte) error
- type T
- type TSet
- func (set *TSet) All(f func(t.Time) bool) bool
- func (set *TSet) Any(f func(t.Time) bool) bool
- func (set *TSet) Append(keys ...t.Time)
- func (set *TSet) Clear()
- func (set *TSet) Clone() *TSet
- func (set *TSet) Contains(key t.Time) bool
- func (set *TSet) ContainsAll(keys ...t.Time) bool
- func (set *TSet) ContainsAny(keys ...t.Time) bool
- func (set *TSet) CountBy(f func(t.Time) bool) int
- func (set *TSet) Difference(another *TSet) *TSet
- func (set *TSet) DoUntilError(f func(t.Time) error) error
- func (set *TSet) Equal(another *TSet) bool
- func (set *TSet) Filter(f func(t.Time) bool) *TSet
- func (set *TSet) FilterMap(f interface{}) interface{}
- func (set *TSet) FindBy(f func(t.Time) bool) *t.Time
- func (set *TSet) Fold(init t.Time, f func(t.Time, t.Time) t.Time) t.Time
- func (set *TSet) ForEach(f func(t.Time))
- func (set *TSet) GroupBy(f func(t.Time) interface{}) map[interface{}]*TSet
- func (set *TSet) GroupByBool(f func(t.Time) bool) (trueGroup *TSet, falseGroup *TSet)
- func (set *TSet) GroupByInt(f func(t.Time) int) map[int]*TSet
- func (set *TSet) GroupByStr(f func(t.Time) string) map[string]*TSet
- func (set *TSet) InPlaceUnion(another *TSet)
- func (set *TSet) Intersect(another *TSet) *TSet
- func (set *TSet) IsEmpty() bool
- func (set *TSet) IsProperSubsetOf(another *TSet) bool
- func (set *TSet) IsProperSupersetOf(another *TSet) bool
- func (set *TSet) IsSubsetOf(another *TSet) bool
- func (set *TSet) IsSupersetOf(another *TSet) bool
- func (set *TSet) Len() int
- func (set *TSet) Map(f interface{}) interface{}
- func (set TSet) MarshalJSON() ([]byte, error)
- func (set *TSet) Reduce(f func(t.Time, t.Time) t.Time) t.Time
- func (set *TSet) Remove(key t.Time)
- func (set *TSet) String() string
- func (set *TSet) ToSlice() []t.Time
- func (set *TSet) Union(another *TSet) *TSet
- func (set *TSet) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Int3Set ¶
type Int3Set struct {
// contains filtered or unexported fields
}
func NewAscendingInt3Set ¶
func NewDescendingInt3Set ¶
func (*Int3Set) ContainsAll ¶
func (*Int3Set) ContainsAny ¶
func (*Int3Set) Difference ¶
func (*Int3Set) FilterMap ¶
func (set *Int3Set) FilterMap(f interface{}) interface{}
f: func(int) *T
func(int) (T, bool) func(int) (T, error)
return: []T
func (*Int3Set) ForEachWithIndex ¶
func (*Int3Set) GroupByBool ¶
func (*Int3Set) InPlaceUnion ¶
func (*Int3Set) IsProperSubsetOf ¶
func (*Int3Set) IsProperSupersetOf ¶
func (*Int3Set) IsSubsetOf ¶
func (*Int3Set) IsSupersetOf ¶
func (Int3Set) MarshalJSON ¶
func (*Int3Set) UnmarshalJSON ¶
type IntSet ¶
type IntSet struct {
// contains filtered or unexported fields
}
func NewIntSetFromSlice ¶
func (*IntSet) ContainsAll ¶
func (*IntSet) ContainsAny ¶
func (*IntSet) Difference ¶
func (*IntSet) FilterMap ¶
func (set *IntSet) FilterMap(f interface{}) interface{}
f: func(int) *T
func(int) (T, bool) func(int) (T, error)
return: []T
func (*IntSet) GroupByBool ¶
func (*IntSet) InPlaceUnion ¶
func (*IntSet) IsProperSubsetOf ¶
func (*IntSet) IsProperSupersetOf ¶
func (*IntSet) IsSubsetOf ¶
func (*IntSet) IsSupersetOf ¶
func (IntSet) MarshalJSON ¶
func (*IntSet) UnmarshalJSON ¶
type IntSlice ¶
type IntSlice struct {
// contains filtered or unexported fields
}
func NewIntSlice ¶
func NewIntSliceFromSlice ¶
func (*IntSlice) FilterMap ¶
func (s *IntSlice) FilterMap(f interface{}) interface{}
f: func(int) *T
func(int) (T, bool) func(int) (T, error)
return: []T
func (*IntSlice) ForEachWithIndex ¶
func (*IntSlice) GroupByBool ¶
func (*IntSlice) InPlaceConcat ¶
func (*IntSlice) IndexRange ¶
func (IntSlice) MarshalJSON ¶
func (*IntSlice) RemoveFrom ¶
func (*IntSlice) RemoveRange ¶
func (*IntSlice) ToSliceRef ¶
func (*IntSlice) UnmarshalJSON ¶
type MyType ¶
type MyType struct { Field1 string // contains filtered or unexported fields }
from this package derive-set: !Export
type NotComparableTypeSlice ¶
type NotComparableTypeSlice struct {
// contains filtered or unexported fields
}
func NewNotComparableTypeSlice ¶
func NewNotComparableTypeSlice(capacity int) *NotComparableTypeSlice
func NewNotComparableTypeSliceFromSlice ¶
func NewNotComparableTypeSliceFromSlice(slice []NotComparableType) *NotComparableTypeSlice
func (*NotComparableTypeSlice) All ¶
func (s *NotComparableTypeSlice) All(f func(NotComparableType) bool) bool
func (*NotComparableTypeSlice) Any ¶
func (s *NotComparableTypeSlice) Any(f func(NotComparableType) bool) bool
func (*NotComparableTypeSlice) Append ¶
func (s *NotComparableTypeSlice) Append(items ...NotComparableType)
func (*NotComparableTypeSlice) Clear ¶
func (s *NotComparableTypeSlice) Clear()
func (*NotComparableTypeSlice) Clone ¶
func (s *NotComparableTypeSlice) Clone() *NotComparableTypeSlice
func (*NotComparableTypeSlice) Concat ¶
func (s *NotComparableTypeSlice) Concat(another *NotComparableTypeSlice) *NotComparableTypeSlice
func (*NotComparableTypeSlice) CountBy ¶
func (s *NotComparableTypeSlice) CountBy(f func(NotComparableType) bool) uint
func (*NotComparableTypeSlice) DoUntil ¶
func (s *NotComparableTypeSlice) DoUntil(f func(NotComparableType) bool) int
func (*NotComparableTypeSlice) DoUntilError ¶
func (s *NotComparableTypeSlice) DoUntilError(f func(NotComparableType) error) error
func (*NotComparableTypeSlice) DoWhile ¶
func (s *NotComparableTypeSlice) DoWhile(f func(NotComparableType) bool) int
func (*NotComparableTypeSlice) Filter ¶
func (s *NotComparableTypeSlice) Filter(f func(NotComparableType) bool) *NotComparableTypeSlice
func (*NotComparableTypeSlice) FilterMap ¶
func (s *NotComparableTypeSlice) FilterMap(f interface{}) interface{}
f: func(NotComparableType) *T
func(NotComparableType) (T, bool) func(NotComparableType) (T, error)
return: []T
func (*NotComparableTypeSlice) FindBy ¶
func (s *NotComparableTypeSlice) FindBy(f func(NotComparableType) bool) int
func (*NotComparableTypeSlice) FindLastBy ¶
func (s *NotComparableTypeSlice) FindLastBy(f func(NotComparableType) bool) int
func (*NotComparableTypeSlice) Fold ¶
func (s *NotComparableTypeSlice) Fold(init NotComparableType, f func(NotComparableType, NotComparableType) NotComparableType) NotComparableType
func (*NotComparableTypeSlice) ForEach ¶
func (s *NotComparableTypeSlice) ForEach(f func(NotComparableType))
func (*NotComparableTypeSlice) ForEachWithIndex ¶
func (s *NotComparableTypeSlice) ForEachWithIndex(f func(int, NotComparableType))
func (*NotComparableTypeSlice) GroupBy ¶
func (s *NotComparableTypeSlice) GroupBy(f func(NotComparableType) interface{}) map[interface{}]*NotComparableTypeSlice
func (*NotComparableTypeSlice) GroupByBool ¶
func (s *NotComparableTypeSlice) GroupByBool(f func(NotComparableType) bool) (trueGroup, falseGroup *NotComparableTypeSlice)
func (NotComparableTypeSlice) GroupByInt ¶
func (s NotComparableTypeSlice) GroupByInt(f func(NotComparableType) int) map[int]*NotComparableTypeSlice
func (NotComparableTypeSlice) GroupByStr ¶
func (s NotComparableTypeSlice) GroupByStr(f func(NotComparableType) string) map[string]*NotComparableTypeSlice
func (*NotComparableTypeSlice) InPlaceConcat ¶
func (s *NotComparableTypeSlice) InPlaceConcat(another *NotComparableTypeSlice)
func (*NotComparableTypeSlice) Index ¶
func (s *NotComparableTypeSlice) Index(idx int) *NotComparableType
func (*NotComparableTypeSlice) IndexFrom ¶
func (s *NotComparableTypeSlice) IndexFrom(idx int) *NotComparableTypeSlice
func (*NotComparableTypeSlice) IndexRange ¶
func (s *NotComparableTypeSlice) IndexRange(from, to int) *NotComparableTypeSlice
func (*NotComparableTypeSlice) IndexTo ¶
func (s *NotComparableTypeSlice) IndexTo(idx int) *NotComparableTypeSlice
func (*NotComparableTypeSlice) Insert ¶
func (s *NotComparableTypeSlice) Insert(idx int, items ...NotComparableType)
func (*NotComparableTypeSlice) IsEmpty ¶
func (s *NotComparableTypeSlice) IsEmpty() bool
func (*NotComparableTypeSlice) Len ¶
func (s *NotComparableTypeSlice) Len() int
func (*NotComparableTypeSlice) Map ¶
func (s *NotComparableTypeSlice) Map(f interface{}) interface{}
f: func(NotComparableType) T return: []T
func (NotComparableTypeSlice) MarshalJSON ¶
func (s NotComparableTypeSlice) MarshalJSON() ([]byte, error)
func (*NotComparableTypeSlice) Reduce ¶
func (s *NotComparableTypeSlice) Reduce(f func(NotComparableType, NotComparableType) NotComparableType) NotComparableType
func (*NotComparableTypeSlice) Remove ¶
func (s *NotComparableTypeSlice) Remove(idx int)
func (*NotComparableTypeSlice) RemoveFrom ¶
func (s *NotComparableTypeSlice) RemoveFrom(idx int)
func (*NotComparableTypeSlice) RemoveRange ¶
func (s *NotComparableTypeSlice) RemoveRange(from, to int)
func (*NotComparableTypeSlice) RemoveTo ¶
func (s *NotComparableTypeSlice) RemoveTo(idx int)
func (*NotComparableTypeSlice) String ¶
func (s *NotComparableTypeSlice) String() string
func (*NotComparableTypeSlice) ToSlice ¶
func (s *NotComparableTypeSlice) ToSlice() []NotComparableType
func (*NotComparableTypeSlice) ToSliceRef ¶
func (s *NotComparableTypeSlice) ToSliceRef() []NotComparableType
func (*NotComparableTypeSlice) UnmarshalJSON ¶
func (s *NotComparableTypeSlice) UnmarshalJSON(b []byte) error
type PSet ¶
type PSet struct {
// contains filtered or unexported fields
}
func NewPSetFromSlice ¶
func (*PSet) Difference ¶
func (*PSet) FilterMap ¶
func (set *PSet) FilterMap(f interface{}) interface{}
f: func(plugin.Plugin) *T
func(plugin.Plugin) (T, bool) func(plugin.Plugin) (T, error)
return: []T
func (*PSet) GroupByBool ¶
func (*PSet) GroupByStr ¶
func (*PSet) InPlaceUnion ¶
func (*PSet) IsProperSubsetOf ¶
func (*PSet) IsProperSupersetOf ¶
func (*PSet) IsSubsetOf ¶
func (*PSet) IsSupersetOf ¶
func (*PSet) Map ¶
func (set *PSet) Map(f interface{}) interface{}
f: func(plugin.Plugin) T return: []T
func (PSet) MarshalJSON ¶
func (*PSet) UnmarshalJSON ¶
type SSet ¶
type SSet struct {
// contains filtered or unexported fields
}
func NewAscendingSSet ¶
func NewDescendingSSet ¶
func (*SSet) ContainsAll ¶
func (*SSet) ContainsAny ¶
func (*SSet) Difference ¶
func (*SSet) FilterMap ¶
func (set *SSet) FilterMap(f interface{}) interface{}
f: func(string) *T
func(string) (T, bool) func(string) (T, error)
return: []T
func (*SSet) ForEachWithIndex ¶
func (*SSet) GroupByBool ¶
func (*SSet) InPlaceUnion ¶
func (*SSet) IsProperSubsetOf ¶
func (*SSet) IsProperSupersetOf ¶
func (*SSet) IsSubsetOf ¶
func (*SSet) IsSupersetOf ¶
func (SSet) MarshalJSON ¶
func (*SSet) UnmarshalJSON ¶
type TSet ¶
type TSet struct {
// contains filtered or unexported fields
}
func NewTSetFromSlice ¶
func (*TSet) Difference ¶
func (*TSet) FilterMap ¶
func (set *TSet) FilterMap(f interface{}) interface{}
f: func(t.Time) *T
func(t.Time) (T, bool) func(t.Time) (T, error)
return: []T
func (*TSet) GroupByBool ¶
func (*TSet) InPlaceUnion ¶
func (*TSet) IsProperSubsetOf ¶
func (*TSet) IsProperSupersetOf ¶
func (*TSet) IsSubsetOf ¶
func (*TSet) IsSupersetOf ¶
func (TSet) MarshalJSON ¶
func (*TSet) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.