Add generator for #reduce