Documentation ¶
Index ¶
- func Asc[E constraints.Ordered](x []E) []E
- func BubbleSort[E constraints.Ordered](x []E) []E
- func Desc[E constraints.Ordered](x []E) []E
- func InsertSort[E constraints.Ordered](x []E) []E
- func IsAsc[E constraints.Ordered](x []E) bool
- func IsDesc[E constraints.Ordered](x []E) bool
- func SelectSort[E constraints.Ordered](x []E) []E
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Asc ¶
func Asc[E constraints.Ordered](x []E) []E
Asc sorts a slice of any ordered type in ascending order.
func BubbleSort ¶
func BubbleSort[E constraints.Ordered](x []E) []E
func Desc ¶
func Desc[E constraints.Ordered](x []E) []E
Desc sorts a slice of any ordered type in descending order.
func InsertSort ¶
func InsertSort[E constraints.Ordered](x []E) []E
func IsAsc ¶
func IsAsc[E constraints.Ordered](x []E) bool
IsAsc reports whether x is sorted in ascending order.
func IsDesc ¶
func IsDesc[E constraints.Ordered](x []E) bool
IsDesc reports whether x is sorted in descending order.
func SelectSort ¶
func SelectSort[E constraints.Ordered](x []E) []E
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.