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