Skip to content

ts-ds / CompareStep

Interface: CompareStep<T> ​

Defined in: trace/trace.ts:4

The algorithm compared two elements.

Type Parameters ​

Type Parameter
T

Properties ​

indices ​

ts
indices: number[];

Defined in: trace/trace.ts:12

Indexes of the compared values in the array, when they were read from it right before the comparison. Empty when a value comes from somewhere else — a saved pivot or a buffer.


result ​

ts
result: number;

Defined in: trace/trace.ts:14

What the comparator returned: negative, zero or positive.


type ​

ts
type: "compare";

Defined in: trace/trace.ts:5


values ​

ts
values: [T, T];

Defined in: trace/trace.ts:7

The compared values, in the order they were passed to the comparator.

MIT License