Submodules
Constants
Procedures
alphabetical

Returns a comparison function that makes it so values are sorted in alphabetical order based on the string that f returns for that value.

Arguments

f - |any| -> str

Returns

|any, any| -> int

ascending

Returns a comparison function that makes it so values for which f returns a lower number will be placed at an index lower than that of a value for which f returns a higher number (ascending order).

Arguments

f - |any| -> (int | float)

Returns

|any, any| -> (int | float)

descending

Returns a comparison function that makes it so values for which f returns a lower number will be placed at an index higher than that of a value for which f returns a higher number (descending order).

Arguments

f - |any| -> (int | float)

Returns

|any, any| -> (int | float)

quicksort

Sorts the part of the array src starting at the index start up to (not including) the index end in place, modifying src. Items will be sorted according to the comparison function comp (see std::sort::ascending and std::sort::descending). comp must be a function that takes two array elements a and b to compare, returning eiter a number that is less than zero (placing a at an index lower than b) or a number that is greater than zero (placing a at an index higher than b).

Arguments

src - [any]

start - int

end - int

comp - |any, any| -> (int | float)

Returns

unit