ChainBuilder.addFunction(f, nTimes)