locutus
Version:
Locutus other languages' standard libraries to JavaScript for fun and educational purposes
13 lines (12 loc) • 520 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.bisect_right = bisect_right;
const _bisect_ts_1 = require("../_helpers/_bisect.js");
function bisect_right(a, x, lo, hi) {
// discuss at: https://locutus.io/python/bisect/bisect_right/
// parity verified: Python 3.12
// original by: Kevin van Zonneveld (https://kvz.io)
// example 1: bisect_right([1, 2, 2, 4], 2)
// returns 1: 3
return (0, _bisect_ts_1.pythonBisectRight)(a, x, lo, hi);
}