package
Version:
v0.0.19
Opens a new window with list of versions in this module.
Published: Nov 15, 2025
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package sort provides sorting in place slice elements
Asc sorts orderable elements ascending
func By[T any, O cmp.Ordered, TS ~[]T](elements TS, orderConverter func(T) O) TS
By sorts elements in ascending order, using the orderConverner function to retrieve a value of type Ordered.
Desc sorts orderable elements descending
func DescBy[T any, O cmp.Ordered, TS ~[]T](elements TS, orderConverter func(T) O) TS
DescBy sorts elements in descending order, using the orderConverner function to retrieve a value of type Ordered.
Source Files
¶
Directories
¶
Package asc provides aliases for storing slice functions.
|
Package asc provides aliases for storing slice functions. |
Package desc provides aliases for storing slice functions.
|
Package desc provides aliases for storing slice functions. |
Click to show internal directories.
Click to hide internal directories.