¤ loopCompSP, loopThroughBothSP

Stream processor combinators that create circular connections

Types

loopCompSP :: SP (Either (Either a b) (Either c d)) (Either (Either c e) (Either a f)) -> SP (Either b d) (Either e f)
loopThroughBothSP :: SP (Either a b) (Either c d) -> SP (Either c e) (Either a f) -> SP (Either b e) (Either d f)

Description

loopCompSP is a symmetric version of loopCompThroughRightSP. When applied to a parallel composition of two fudgets it allows the fudgets to communicate both with the outside world and with each other.

Equalities

  loopThroughBothSP sp1 sp2 = loopCompSP (sp1 -+- sp2)

See Also

Other loop combinators: loopCompThroughRightSP et al.

The corresponding fudget combinator: loopCompF.

Parallel composition of stream processors: -+-

Bugs

There should be an illustrative diagram.