@eagleoutice/flowr - v2.17.4
    Preparing search index...

    Interface DemandProblem<K, V>

    An equation system whose dependencies show only as a node's value is computed, see DemandSolver.

    interface DemandProblem<K, V> {
        equals: (a: V, b: V) => boolean;
        exhausted: (node: K) => V;
        initial: (node: K) => V;
        rounds: number;
        transfer: (node: K, valueOf: (other: K) => V) => V;
    }

    Type Parameters

    • K
    • V
    Index
    equals: (a: V, b: V) => boolean
    exhausted: (node: K) => V
    initial: (node: K) => V

    what a node asked for while it is being computed is assumed to hold before its cycle has been iterated

    rounds: number

    how many rounds a cycle gets to settle before all of its nodes answer exhausted

    transfer: (node: K, valueOf: (other: K) => V) => V

    the value of a node, asking valueOf for whatever other values it needs