@neutrium/math - v2.2.0
    Preparing search index...

    Interface ExpressionFunction<T>

    Trusted application code, registered explicitly rather than obtained from expression text.

    interface ExpressionFunction<T> {
        evaluate: (args: readonly T[]) => T;
        maxArgs?: number;
        minArgs: number;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index
    evaluate: (args: readonly T[]) => T

    Receives a fresh frozen argument array that may be retained or used during reentrant evaluation.

    maxArgs?: number

    Defaults to minArgs. Variadic functions still need a finite maximum.

    minArgs: number