Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | 1x | `use strict`;
import { KoconutLoopSignal } from '../../module';
export type IndexedSelector<InputType, ReturnType> = (
index: number,
data: InputType,
) => ReturnType | Promise<ReturnType>;
export type Selector<InputType, ReturnType> = (
data: InputType,
) => ReturnType | Promise<ReturnType>;
export type Transformer<InputType, TransformedType> = Selector<
InputType,
TransformedType
>;
export type IndexedTransformer<InputType, TransformedType> = IndexedSelector<
InputType,
TransformedType
>;
export type Zipper<InputType1, InputType2, ResultType> = (
data1: InputType1,
data2: InputType2,
) => ResultType | Promise<ResultType>;
export type Generator<OutputType> = Transformer<number, OutputType>;
export type Processor<InputType> = Selector<InputType, void>;
export type Predicator<InputType> = Selector<InputType, boolean>;
export type IndexedPredicator<InputType> = IndexedSelector<InputType, boolean>;
export type Action<InputType> = Selector<
InputType,
boolean | KoconutLoopSignal | void
>;
export type IndexedAction<InputType> = IndexedSelector<
InputType,
boolean | KoconutLoopSignal | void
>;
export type Comparator<InputType> = (
front: InputType,
rear: InputType,
) => number | Promise<number>;
export type Operator<InputType, ResultType> = (
acc: ResultType,
element: InputType,
) => ResultType | Promise<ResultType>;
export type IndexedOperator<InputType, ResultType> = (
index: number,
acc: ResultType,
element: InputType,
) => ResultType | Promise<ResultType>;
|