Accumulate the errors obtained by executing the block over every element of this using the given semigroup.