@Kal maybe this will help:

Here is the concept in done fizzbuzz style list :
The problem: Write a function foo that takes a number n and returns a
function that takes a number i, and returns n incremented by i.

http://www.paulgraham.com/accgen.html

which is an extension to this inglorious rant on managerial driven
development (MDD)
http://www.paulgraham.com/icad.html

~Stu