Jon Fairbairn wrote:

> [3] I think this example is slightly easier, though on second thoughts
> 
>     unzip [('a', 1), ('b', 2), ('c', 3)] = (['a', 'b', 'c'], [1, 2, 3])
> 
>     is better still.

It's a good idea to use two different types in an example, but Char
is not well chosen, because the canonical way to write the above
result is ("abc",[1,2,3]). Bool might be a better choice, although it
only has two values with quite long names.


Christian Sievers


Reply via email to