A little exercise in blocks and yield:  duplicate the effects of inject method on an array