Haskell/Solutions/Control structures

Controlling actions, revisited
1.

2. Executing  will print. Remember that the value of a sequence of IO actions is the same as the value of the last action in the sequence. can also be written as:

or even shorter, as:

As a result,  in the   function has the value , which will then be written to the screen.

Operators
1.


 * Substitute  to get
 * Substitute  to get

2.


 * Becomes
 * Has type
 * Becomes
 * Alternately written as
 * Has type
 * Note: The full type is  but this has not been covered yet.
 * Becomes
 * Alternately written as
 * Has type
 * Becomes
 * Alternately written as
 * Has type