Next: The Nondeterminism Analysis
Up: An Overview of Curry
Previous: Basic Features of Curry
Nondeterministic computations are problematic if they appear in programs that
use I/O.
A declarative treatment of input/output, as implemented in Curry,
can be obtained by
the monadic I/O concept [24].
In this concept, an interactive program is considered
as a function computing a sequence of actions which are applied
to the outside world. An action changes the state of the world
and possibly returns a result (e.g., a character read from the terminal).
Thus, actions are functions of the type

(where denotes the type of all states of the outside world).
This function type is also abbreviated by
.
If an action of type
is applied to a particular world,
it yields a value of type
and a new (changed) world.
For instance,
Next: The Nondeterminism Analysis
Up: An Overview of Curry
Previous: Basic Features of Curry
F. Steiner
Sat Sep 4 22:03:32 MEST 1999