Comprehensions and mapreduce