concatMap package:multiset

O(n). Apply a function to each element, and take the union of the results
O(n). Apply a function to each element, and take the union of the results