7.7 Iterating and Monitoring

monitorIn

{FS.monitorIn *M ?Is}

This procedure writes all elements of M to Is as soon as {\tt I} \in {\tt M} becomes known. When M becomes determined the stream Is will be closed.

monitorOut

{FS.monitorOut *M ?Is}

This procedure writes all elements of M to Is as soon as {\tt I} \notin {\tt M} becomes known. When M becomes determined the stream Is will be closed.

forAllIn

{FS.forAllIn *+P/1}

This procedure applies P/1 to all elements of M.


Denys Duchier, Leif Kornstaedt, Martin Homik, Tobias Müller, Christian Schulte and Peter Van Roy
Version 1.4.0 (20080702)