UNPKG

functionalscript

Version:

FunctionalScript is a purely functional subset of JavaScript

7 lines (6 loc) 359 B
import type { Index3, Index5, Array2 } from '../../array/module.f.ts'; export type Sign = -1 | 0 | 1; export type Compare<T> = (_: T) => Sign; export declare const index3: <T>(cmp: Compare<T>) => (value: T) => Index3; export declare const index5: <T>(cmp: Compare<T>) => (v2: Array2<T>) => Index5; export declare const unsafeCmp: <T>(a: T) => (b: T) => Sign;