Recitation 16
-
Why could it be advantageous to use the maybe monad (vs. using pattern matching on the
optiontype)? -
It turns out that one can encode non-deterministic computations using a monad? We let
tbe a set that encodes all possible results. Thereturnfunction produces a singleton set containing its argument. What shouldbinddo? (No need to give code – it’s fine to be informal.)