Revenge of the Nerds yielded a collection of canonical solutions to the same problem in a number of languages. 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. Note: (a) that's number, not integer, (b) that's incremented by, not plus. C++ template<typename T> struct Acc { Acc(T n) : n(n) {} template<typename U> Ac

