/samples/closure/closure2.ooc
http://github.com/nddrylliog/oc · Unknown · 9 lines · 6 code · 3 blank · 0 comment · 0 complexity · faaddda66af29b87e3ca3d740e19acd4 MD5 · raw file
- printf: extern func
- gen: func -> Func -> int {
- func -> int { 42 }
- }
- f1 := gen(42)
- printf("%d\n", f1())