import { Range } from "https://deno.land/x/rimbu@1.2.0/core/mod.ts";
Functions
Simplifies a given |
import { type Range } from "https://deno.land/x/rimbu@1.2.0/core/mod.ts";
A range definition for any type of (orderable) value. If a start or end is defined, a tuple can be used where the second item is a boolean indicating whether that end is inclusive (true) or exclusive (false). A Range of type T can have one of the following forms:
- { end: T }
- { end: [T, boolean] }
- { start: T }
- { start: T, end: T }
- { start: T, end: [T, boolean] }
- { start: [T, boolean] }
- { start: [T, boolean], end: T }
- { start: [T, boolean], end: [T, boolean] }