Extensions to the list API, which utilise typeclasses.
O(n). Map each element of the list to a type which has an instance of Monoid,
and combine the results.
Sort the elements using a Comparison instance.
Sort the elements by mapping to a type which has an instance of Comparison.
O(n). Check whether a value is a member of a list based on the value's Equality instance.
O(n^2). Deduplicate a list using an instance of Equality.
O(n). Combine the elements of list using a
Monoidinstance.