Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

between

import { between } from "https://raw.githubusercontent.com/baetheus/fun/main/sortable.ts";

Construct an exclusive between function over A from Sortable.

@example
import * as O from "./sortable.ts";
import { SortableNumber } from "./number.ts";

const between = O.between(SortableNumber);
const between1 = between(0, 10)

const result1 = between1(-1); // false
const result2 = between1(1); // true
const result3 = between1(100); // false
function between<A>(sort: Sortable<A>): (low: A, high: A) => (value: A) => boolean;
§
between<A>(sort: Sortable<A>): (low: A, high: A) => (value: A) => boolean
[src]

§Type Parameters

§Parameters

§Return Type

§
(low: A, high: A) => (value: A) => boolean
[src]