bumped up golang version to 1.23
This commit is contained in:
14
types.go
Normal file
14
types.go
Normal file
@ -0,0 +1,14 @@
|
||||
package slices
|
||||
|
||||
type EqualityComparator[T comparable] = func(a, b T) bool
|
||||
type FilterFunc[T any] = func(T) bool
|
||||
type Consumer[T any] = func(T)
|
||||
type IndexedConsumer[T any] = func(int, T)
|
||||
|
||||
type Mapper[I, O any] = func(I) O
|
||||
type ErrorMapper[I, O any] = func(I) (O, error)
|
||||
|
||||
type MapMapper[T any, K comparable, V any] = func(T) (K, V)
|
||||
type MapUnmapper[K comparable, V, T any] = func(K, V) T
|
||||
|
||||
type Reducer[A, T any] = func(acc A, value T) A
|
Reference in New Issue
Block a user