ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
const DEBUG = true;
export function log(...args: any[]) {
if (DEBUG) {
console.log(...args);
}
}
/**
* Find an index `i` such that `compare(array[i]) === 0`, or — when no exact
* match exists — the index of the greatest element with `compare < 0`
* (`-1` if none). Assumes `array` is sorted ascending by `compare`.
*
* NOTE: when several elements compare equal (e.g. share a timestamp) this
* returns an *arbitrary* one of them, not necessarily the first or last.
*/
export function binarySearch<T>(
array: readonly T[
element
left
right arraylength
lastLess
left right
mid Mathleft right
cmp arraymid
cmp
mid
cmp
lastLess mid
left mid
right mid
lastLess
Left Right
Either
value Left
value
value Right
value
value
Left
Right
value
Left
Right