ts-ds / SearchStep
Type Alias: SearchStep<T>
ts
type SearchStep<T> =
| {
index: number;
type: "probe";
value: T;
}
| {
result: number;
type: "compare";
values: [T, T];
};Defined in: trace/search.ts:4
A search step: the algorithm looked at an element, or compared it with the target.
Type Parameters
| Type Parameter |
|---|
T |