package
Version:
v0.13.0
Opens a new window with list of versions in this module.
Published: Sep 21, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func ProxySort[Tae any, Ta []Tae, Tbe any, Tb []Tbe](a Ta, b Tb, fn func(a, b Tae) bool)
-
func ProxyStable[Tae any, Ta []Tae, Tbe any, Tb []Tbe](a Ta, b Tb, fn func(a, b Tae) bool)
func ProxySort[Tae any, Ta []Tae, Tbe any, Tb []Tbe](a Ta, b Tb, fn func(a, b Tae) bool)
ProxySort same as sort.Sort but is type safe, swaps an additional slice b and also does indexing
Assumes both slices have same length.
func ProxyStable[Tae any, Ta []Tae, Tbe any, Tb []Tbe](a Ta, b Tb, fn func(a, b Tae) bool)
ProxyStable same as sort.Proxy but is type safe, swaps an additional slice b and also does indexing
Assumes both slices have same length.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.