UNPKG

functionalscript

Version:

FunctionalScript is a purely functional subset of JavaScript

10 lines (9 loc) 498 B
export type NibbleSet = number; export type Nibble = number; export declare const empty = 0; export declare const universe = 65535; export declare const has: (n: Nibble) => (s: NibbleSet) => boolean; export declare const set: (n: Nibble) => (s: NibbleSet) => NibbleSet; export declare const complement: (n: NibbleSet) => NibbleSet; export declare const unset: (n: Nibble) => (s: NibbleSet) => NibbleSet; export declare const setRange: (r: readonly [number, number]) => (s: NibbleSet) => NibbleSet;