External module primitive
Type aliases
ComparatorFn
ComparatorFn: function
Type declaration
-
-
Parameters
Returns number
Functions
genericComparator
- genericComparator<T>(a: T, b: T): number
-
Type parameters
Parameters
Returns number
swap
- swap<T>(collection: T[], idxA: number, idxB: number): void
-
Type parameters
Parameters
-
collection: T[]
-
idxA: number
-
idxB: number
Returns void
Primitive module contain basic types used across algorithms and data structures