Haskell 習題 2.1:LISTS OF LISTS
1. rewrite the previous list literals using only (:) and the empty list constructor [].
1 | (('a':[]):('b':[]):('c':[]):[]):(('d':[]):('e':[]):[]):[] |
2. Write an expression that checks whether a list is empty, [], or its first element is empty, like [[],[‘a’,’b’]].
1 | firstEmpty [] = True |