>>576
function foo(n) { return function (i) { return n += i } }

もしよかったら上のJavaScriptで書かれたアキュムレータを返す関数を
Javaで再現してみせてほしい。