functionalscript
Version:
FunctionalScript is a purely functional subset of JavaScript
17 lines (16 loc) • 946 B
TypeScript
import type { RangeMap } from '../range_map/module.f.ts';
import type { SortedSet } from '../sorted_set/module.f.ts';
export type ByteSet = bigint;
type Byte = number;
export declare const has: (n: Byte) => (s: ByteSet) => boolean;
export declare const empty = 0n;
export declare const universe = 115792089237316195423570985008687907853269984665640564039457584007913129639935n;
export declare const one: (n: Byte) => ByteSet;
export declare const range: (r: readonly [Byte, Byte]) => ByteSet;
export declare const union: (a: ByteSet) => (b: ByteSet) => ByteSet;
export declare const complement: (n: ByteSet) => ByteSet;
export declare const set: (_: number) => (b: ByteSet) => ByteSet;
export declare const setRange: (_: readonly [number, number]) => (b: ByteSet) => ByteSet;
export declare const unset: (n: Byte) => (s: ByteSet) => ByteSet;
export declare const toRangeMap: (n: ByteSet) => (s: string) => RangeMap<SortedSet<string>>;
export {};