Comment by wannabe44
7 hours 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)
7 hours 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)
No comments yet
Contribute on Hacker News ↗