Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortBy ¶
func SortBy[T comparable, R any](a []T, b []R, f func(r R) T) []R
SortBy sort b by order of a, for solving n+1
func SortById ¶
func SortById[T comparable, R interface{ GetId() T }](a []T, b []R) []R
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.