bisect
Bisection algorithms ported from Python
Summary
| Latest Version | 0.1.1 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-09-01 07:18 |
Tags
Authors
- Eric Berquist
Installation
nimble install bisect
choosenim install bisect
git clone https://github.com/berquist/bisect
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| bisect | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 1.0.0 | No |
Source
| Repository | https://github.com/berquist/bisect |
|---|---|
| Homepage | https://github.com/berquist/bisect |
| Registry Source | nimble_official |
README
bisect
Bisection algorithms ported from Python
Examples
import bisect
assert bisectLeft([1, 1, 2, 2], 2) == 2
assert bisectRight([1, 1, 2, 2], 2) == 4