But now let's move out 2 from the closure into the surrounding scope (our main() function): let y = 2; let add = |x| x + y;. This still works!
確定! 回上一頁