PageRenderTime 121ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 60ms app.codeStats 0ms

/samples/closure/closure3.ooc

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