PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/samples/closure/closure1.ooc

http://github.com/nddrylliog/oc
Unknown | 9 lines | 6 code | 3 blank | 0 comment | 0 complexity | a8616db769d80a93e6a489c73a0304a3 MD5 | raw file
1
2printf: extern func
3
4gen: func -> Func -> int {
5  return func -> int { return 42 }
6}
7
8f1 := gen()
9printf("%d\n", f1())