@dallaylaen/ski-interpreter
    Preparing search index...

    Type Alias SearchProgress<T>

    Yielded by the search generator on every progress tick and on each found term.

    type SearchProgress<T> = {
        cache: Expr[][];
        expr?: Expr;
        found?: T;
        gen: number;
        newGen?: boolean;
        probed: number;
        stop?: boolean;
        total: number;
    }

    Type Parameters

    • T
    Index

    Properties

    cache: Expr[][]

    The entire generation cache reference. This is actually a mutable value and should not be modified by the consumer, and deep-copied in case one wants a true snapshot.

    expr?: Expr

    The found expression; present only when found is defined.

    found?: T

    Why we should care about this term (e.g. when construction multiple terms from a basis) or simply true if there are no important details aside from the term itself.

    gen: number

    The current generation number, starting from 0 for the seed generation.

    newGen?: boolean

    true = a new generation has started

    probed: number

    The number of terms excluding duplicates. Will == total if noskip is true or infer is false.

    stop?: boolean

    only true on the last yield

    total: number

    The number of terms generated so far.