Documentation ¶
Index ¶
- func FMap1[I1 any, ResultType any, NewResultType any](f func(in I1) (ResultType, error), c func(ResultType) NewResultType) func(in I1) (NewResultType, error)
- func FMap2[I1 any, I2 any, ResultType any, NewResultType any](f func(in1 I1, in2 I2) (ResultType, error), c func(ResultType) NewResultType) func(in1 I1, in2 I2) (NewResultType, error)
- func FMap3[I1 any, I2 any, I3 any, ResultType any, NewResultType any](f func(in1 I1, in2 I2, in3 I3) (ResultType, error), ...) func(in1 I1, in2 I2, in3 I3) (NewResultType, error)
- func FMap4[I1 any, I2 any, I3 any, I4 any, ResultType any, NewResultType any](f func(in1 I1, in2 I2, in3 I3, in4 I4) (ResultType, error), ...) func(in1 I1, in2 I2, in3 I3, in4 I4) (NewResultType, error)
- func FMap5[I1 any, I2 any, I3 any, I4 any, I5 any, ResultType any, NewResultType any](f func(in1 I1, in2 I2, in3 I3, in4 I4, in5 I5) (ResultType, error), ...) func(in1 I1, in2 I2, in3 I3, in4 I4, in5 I5) (NewResultType, error)
- func ListContains[T any](list []T, check func(a T) bool) bool
- func ListFilter[T any](in []T, filter func(T) bool) (out []T)
- func ListFilterDuplicates[T any](s []T, equals func(a T, b T) bool) (out []T)
- func ListMap[From any, To any](from []From, converter func(From) To) (to []To)
- func ListSort[T any](list []T, less func(a T, b T) bool)
- func MapKeys[T1 comparable, T2 any](m map[T1]T2) (result []T1)
- type SyncMap
- func (this *SyncMap[T]) Do(f func(m *map[string]T))
- func (this *SyncMap[T]) Get(key string) (value T, ok bool)
- func (this *SyncMap[T]) GetAll() (result map[string]T)
- func (this *SyncMap[T]) GetKeys() (keys []string)
- func (this *SyncMap[T]) Remove(key string)
- func (this *SyncMap[T]) Set(key string, value T)
- func (this *SyncMap[T]) Update(key string, update func(value T) T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListContains ¶
func ListFilter ¶
func ListFilterDuplicates ¶
func MapKeys ¶
func MapKeys[T1 comparable, T2 any](m map[T1]T2) (result []T1)
Types ¶
type SyncMap ¶
type SyncMap[T any] struct { // contains filtered or unexported fields }
func NewSyncMap ¶
Click to show internal directories.
Click to hide internal directories.