bumped up golang version to 1.23

This commit is contained in:
2025-06-22 19:35:57 +02:00
parent efc99a9658
commit cc2ead6c4e
11 changed files with 68 additions and 30 deletions

14
types.go Normal file
View 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