A folding function that increments and rebuilds the list
Channel: Fred Martin
Date: 2017-05-28

From UMass Lowell's COMP.3010 Organization of Programming Languages class, spring 2017 semester.