3 ms·
Sure it's a bad example. But you can't simplify something like this without losing type safety: SortBy[T, K comparable](slice: []T, key: func (T) K)
by wannabe44 2mo ago
Sure it's a bad example. But you can't simplify something like this without losing type safety:
SortBy[T, K comparable](slice: []T, key: func (T) K)