>>19
He presents two ways, the first way 1 line. The second way is the clumsy non-haskellish way of doing it.