import { Range } from "https://deno.land/x/aitertools@0.6.0/src/range.ts";
Returns the element at the specified index in the range. Note that it
guarantees to return the same value as Array.from(range).at(index)
.
import { range } from "./range.ts";
const r = range(10, -10, -3.5);
console.log(r.at(3), r.at(-1));
The above example will print the following 2 lines:
-0.5
-7.5