¤ splitSP

Stream processor that splits a stream of pairs

Types

splitSP :: SP (a, b) (a  b)

Description

splitSP is a stream processor that inputs pairs (x,y) and outputs the parts one after the other, tagged with Left and Right.

Input

pairs (x,y)

Output

the parts of the input pairs, tagged: Left x, Right y.

Example

 (f1>+<f2)>=^^<splitSP

Bugs

Should perhaps be called unzipSP instead.

See Also

>+<, zipSP.