Implemented e7 of List.hs, although it has code dup.