algorithms/sorting/sort.go

6 lines
169 B
Go
Raw Permalink Normal View History

2021-12-06 08:01:25 +02:00
package sorting
2022-01-03 23:07:11 +02:00
// TODO: compare function should receive pointers to slice elements
// to prevent unnecessary coping
2021-12-16 17:46:10 +02:00
type SliceSorter[T any] func([]T, func(T, T) bool)