gitlab.com/ethan.reesor/vscode-notebooks/yaegi@v0.0.0-20220417214422-5c573557938e/_test/run9.go (about) 1 package main 2 3 func main() { 4 a := 3 5 f := func(i int) int { println("f1", i, a); return i + 1 } 6 b := f(21) 7 println(b) 8 } 9 10 // Output: 11 // f1 21 3 12 // 22