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

    Class ReachSummaries<K, V>

    What each node reaches, joined over everything it leads to: of(n) = own(n) joined with of(s) for every successor s.

    Type Parameters

    • K
    • V
    Index
    • Type Parameters

      • K
      • V

      Parameters

      • next: (node: K) => Iterable<K>

        the nodes a node leads to, asked for once per node

      • own: (node: K) => V | undefined

        what a node contributes itself, asked for once per node after its successors

      • monoid: Monoid<V>

        joins the values, its concat may return either of them if it subsumes the other but must not change them

      Returns ReachSummaries<K, V>