lists: flatmap, flatten, foldl, foldr