Attribute the grouper() method to the StackOverflow answer I found in trying to replicate Ruby's each_slice method.