sum() and product() for iterables and map