闭包的使用，val addIt = {kk:Int => result+=kk}